Class: PaidCallHistory
- Inherits:
-
Object
- Object
- PaidCallHistory
- 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
- SEQ =
1
- TYPE =
2
- DIALEDNUMBER =
3
- CALLEDNUMBER =
4
- TOMID =
5
- TONAME =
6
- SETUPTIME =
7
- STARTTIME =
8
- ENDTIME =
9
- DURATION =
10
- TERMINATE =
11
- PRODUCTTYPE =
12
- CHARGE =
13
- UNIT =
14
- RESULT =
15
- FIELDS =
{ SEQ => {:type => ::Thrift::Types::I64, :name => 'seq'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::J0_a_e_a_b_ae}, DIALEDNUMBER => {:type => ::Thrift::Types::STRING, :name => 'dialedNumber'}, CALLEDNUMBER => {:type => ::Thrift::Types::STRING, :name => 'calledNumber'}, TOMID => {:type => ::Thrift::Types::STRING, :name => 'toMid'}, TONAME => {:type => ::Thrift::Types::STRING, :name => 'toName'}, SETUPTIME => {:type => ::Thrift::Types::I64, :name => 'setupTime'}, STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime'}, ENDTIME => {:type => ::Thrift::Types::I64, :name => 'endTime'}, DURATION => {:type => ::Thrift::Types::I64, :name => 'duration'}, TERMINATE => {:type => ::Thrift::Types::I32, :name => 'terminate'}, PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::J0_a_e_a_b_xd}, CHARGE => {:type => ::Thrift::Types::I32, :name => 'charge'}, UNIT => {:type => ::Thrift::Types::STRING, :name => 'unit'}, RESULT => {:type => ::Thrift::Types::STRING, :name => 'result'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
15510 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15510 def struct_fields; FIELDS; end |
#validate ⇒ Object
15512 15513 15514 15515 15516 15517 15518 15519 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15512 def validate unless @type.nil? || ::J0_a_e_a_b_ae::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end unless @productType.nil? || ::J0_a_e_a_b_xd::VALID_VALUES.include?(@productType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field productType!') end end |