Class: DeviceInfo

Inherits:
Object
  • Object
show all
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 => ::J0_a_e_a_b_y},
  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 => ::J0_a_e_a_b_k5},
  CARRIERNAME => {:type => ::Thrift::Types::STRING, :name => 'carrierName'},
  WEBVIEWVERSION => {:type => ::Thrift::Types::STRING, :name => 'webViewVersion', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



13884
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13884

def struct_fields; FIELDS; end

#validateObject



13886
13887
13888
13889
13890
13891
13892
13893
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13886

def validate
  unless @applicationType.nil? || ::J0_a_e_a_b_y::VALID_VALUES.include?(@applicationType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field applicationType!')
  end
  unless @carrierCode.nil? || ::J0_a_e_a_b_k5::VALID_VALUES.include?(@carrierCode)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field carrierCode!')
  end
end