Class: DeviceInfo
- Inherits:
-
Object
- Object
- DeviceInfo
- 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
- APPLICATIONTYPE =
20
- DEVICENAME =
1
- SYSTEMNAME =
2
- SYSTEMVERSION =
3
- MODEL =
4
- CARRIERCODE =
10
- CARRIERNAME =
11
- WEBVIEWVERSION =
5
- FIELDS =
{ APPLICATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'applicationType', :enum_class => ::P0_a_e_a_b_z}, DEVICENAME => {:type => ::Thrift::Types::STRING, :name => 'deviceName'}, SYSTEMNAME => {:type => ::Thrift::Types::STRING, :name => 'systemName'}, SYSTEMVERSION => {:type => ::Thrift::Types::STRING, :name => 'systemVersion'}, MODEL => {:type => ::Thrift::Types::STRING, :name => 'model'}, CARRIERCODE => {:type => ::Thrift::Types::I32, :name => 'carrierCode', :enum_class => ::P0_a_e_a_b_l5}, CARRIERNAME => {:type => ::Thrift::Types::STRING, :name => 'carrierName'}, WEBVIEWVERSION => {:type => ::Thrift::Types::STRING, :name => 'webViewVersion', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14752 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14752 def struct_fields; FIELDS; end |
#validate ⇒ Object
14754 14755 14756 14757 14758 14759 14760 14761 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14754 def validate unless @applicationType.nil? || ::P0_a_e_a_b_z::VALID_VALUES.include?(@applicationType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field applicationType!') end unless @carrierCode.nil? || ::P0_a_e_a_b_l5::VALID_VALUES.include?(@carrierCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field carrierCode!') end end |