Class: CallRoute

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

FROMTOKEN =
1
CALLFLOWTYPE =
2
VOIPADDRESS =
3
VOIPUDPPORT =
4
VOIPTCPPORT =
5
FROMZONE =
6
TOZONE =
7
FAKECALL =
8
RINGBACKTONE =
9
TOMID =
10
TUNNELING =
11
COMMPARAM =
12
STID =
13
ENCFROMMID =
14
ENCTOMID =
15
SWITCHABLETOVIDEO =
16
FIELDS =
{
  FROMTOKEN => {:type => ::Thrift::Types::STRING, :name => 'fromToken'},
  CALLFLOWTYPE => {:type => ::Thrift::Types::I32, :name => 'callFlowType', :enum_class => ::P0_a_e_a_b_i3},
  VOIPADDRESS => {:type => ::Thrift::Types::STRING, :name => 'voipAddress'},
  VOIPUDPPORT => {:type => ::Thrift::Types::I32, :name => 'voipUdpPort'},
  VOIPTCPPORT => {:type => ::Thrift::Types::I32, :name => 'voipTcpPort', :optional => true},
  FROMZONE => {:type => ::Thrift::Types::STRING, :name => 'fromZone', :optional => true},
  TOZONE => {:type => ::Thrift::Types::STRING, :name => 'toZone', :optional => true},
  FAKECALL => {:type => ::Thrift::Types::BOOL, :name => 'fakeCall', :optional => true},
  RINGBACKTONE => {:type => ::Thrift::Types::STRING, :name => 'ringbackTone', :optional => true},
  TOMID => {:type => ::Thrift::Types::STRING, :name => 'toMid', :optional => true},
  TUNNELING => {:type => ::Thrift::Types::STRING, :name => 'tunneling', :optional => true},
  COMMPARAM => {:type => ::Thrift::Types::STRING, :name => 'commParam', :optional => true},
  STID => {:type => ::Thrift::Types::STRING, :name => 'stid', :optional => true},
  ENCFROMMID => {:type => ::Thrift::Types::STRING, :name => 'encFromMid', :optional => true},
  ENCTOMID => {:type => ::Thrift::Types::STRING, :name => 'encToMid', :optional => true},
  SWITCHABLETOVIDEO => {:type => ::Thrift::Types::BOOL, :name => 'switchableToVideo', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



16153
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16153

def struct_fields; FIELDS; end

#validateObject



16155
16156
16157
16158
16159
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16155

def validate
  unless @callFlowType.nil? || ::P0_a_e_a_b_i3::VALID_VALUES.include?(@callFlowType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field callFlowType!')
  end
end