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 => ::P0_a_e_a_b_be}, 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 => ::P0_a_e_a_b_yd}, 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
16599 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16599 def struct_fields; FIELDS; end |
#validate ⇒ Object
16601 16602 16603 16604 16605 16606 16607 16608 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16601 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 end |