Class: PaidCallDialing
- Inherits:
-
Object
- Object
- PaidCallDialing
- 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
- TYPE =
1
- DIALEDNUMBER =
2
- SERVICEDOMAIN =
3
- PRODUCTTYPE =
4
- PRODUCTNAME =
5
- MULTIPLEPRODUCT =
6
- CALLERIDSTATUS =
7
- BALANCE =
10
- UNIT =
11
- RATE =
12
- DISPLAYCODE =
13
- CALLEDNUMBER =
14
- CALLEENATIONALNUMBER =
15
- CALLEECALLINGCODE =
16
- RATEDIVISION =
17
- ADMAXMIN =
20
- ADREMAINS =
21
- ADSESSIONID =
22
- FIELDS =
{ TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_e_a_b_be}, DIALEDNUMBER => {:type => ::Thrift::Types::STRING, :name => 'dialedNumber'}, SERVICEDOMAIN => {:type => ::Thrift::Types::STRING, :name => 'serviceDomain'}, PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_e_a_b_yd}, PRODUCTNAME => {:type => ::Thrift::Types::STRING, :name => 'productName'}, MULTIPLEPRODUCT => {:type => ::Thrift::Types::BOOL, :name => 'multipleProduct'}, CALLERIDSTATUS => {:type => ::Thrift::Types::I32, :name => 'callerIdStatus', :enum_class => ::P0_a_e_a_b_de}, BALANCE => {:type => ::Thrift::Types::I32, :name => 'balance'}, UNIT => {:type => ::Thrift::Types::STRING, :name => 'unit'}, RATE => {:type => ::Thrift::Types::I32, :name => 'rate'}, DISPLAYCODE => {:type => ::Thrift::Types::STRING, :name => 'displayCode'}, CALLEDNUMBER => {:type => ::Thrift::Types::STRING, :name => 'calledNumber'}, CALLEENATIONALNUMBER => {:type => ::Thrift::Types::STRING, :name => 'calleeNationalNumber'}, CALLEECALLINGCODE => {:type => ::Thrift::Types::STRING, :name => 'calleeCallingCode'}, RATEDIVISION => {:type => ::Thrift::Types::STRING, :name => 'rateDivision'}, ADMAXMIN => {:type => ::Thrift::Types::I32, :name => 'adMaxMin'}, ADREMAINS => {:type => ::Thrift::Types::I32, :name => 'adRemains'}, ADSESSIONID => {:type => ::Thrift::Types::STRING, :name => 'adSessionId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
13068 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13068 def struct_fields; FIELDS; end |
#validate ⇒ Object
13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13070 def validate unless @type.nil? || ::P0_a_e_a_b_be::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end unless @productType.nil? || ::P0_a_e_a_b_yd::VALID_VALUES.include?(@productType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field productType!') end unless @callerIdStatus.nil? || ::P0_a_e_a_b_de::VALID_VALUES.include?(@callerIdStatus) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field callerIdStatus!') end end |