Class: PushRecvReport
- Inherits:
-
Object
- Object
- PushRecvReport
- 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
- PUSHTRACKINGID =
1
- RECVTIMESTAMP =
2
- BATTERY =
3
- BATTERYMODE =
4
- CLIENTNETWORKTYPE =
5
- CARRIERCODE =
6
- DISPLAYTIMESTAMP =
7
- FIELDS =
{ PUSHTRACKINGID => {:type => ::Thrift::Types::STRING, :name => 'pushTrackingId'}, RECVTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'recvTimestamp'}, BATTERY => {:type => ::Thrift::Types::I32, :name => 'battery'}, BATTERYMODE => {:type => ::Thrift::Types::I32, :name => 'batteryMode', :enum_class => ::J0_a_e_a_b_s1}, CLIENTNETWORKTYPE => {:type => ::Thrift::Types::I32, :name => 'clientNetworkType', :enum_class => ::J0_a_e_a_b_s7}, CARRIERCODE => {:type => ::Thrift::Types::STRING, :name => 'carrierCode'}, DISPLAYTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'displayTimestamp', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
15975 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15975 def struct_fields; FIELDS; end |
#validate ⇒ Object
15977 15978 15979 15980 15981 15982 15983 15984 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 15977 def validate unless @batteryMode.nil? || ::J0_a_e_a_b_s1::VALID_VALUES.include?(@batteryMode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field batteryMode!') end unless @clientNetworkType.nil? || ::J0_a_e_a_b_s7::VALID_VALUES.include?(@clientNetworkType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field clientNetworkType!') end end |