Class: ThingsDevice

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

DEVICEID =
1
ACTIONURI =
2
BOTMID =
3
PRODUCTTYPE =
4
PROVIDERNAME =
5
PROFILEIMAGELOCATION =
6
CHANNELIDLIST =
7
TARGETABCENGINEVERSION =
8
SERVICEUUID =
9
BONDINGREQUIRED =
10
FIELDS =
{
  DEVICEID => {:type => ::Thrift::Types::STRING, :name => 'deviceId'},
  ACTIONURI => {:type => ::Thrift::Types::STRING, :name => 'actionUri'},
  BOTMID => {:type => ::Thrift::Types::STRING, :name => 'botMid', :optional => true},
  PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :optional => true, :enum_class => ::G_a_b_e1_a_a_b0},
  PROVIDERNAME => {:type => ::Thrift::Types::STRING, :name => 'providerName', :optional => true},
  PROFILEIMAGELOCATION => {:type => ::Thrift::Types::STRING, :name => 'profileImageLocation', :optional => true},
  CHANNELIDLIST => {:type => ::Thrift::Types::LIST, :name => 'channelIdList', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
  TARGETABCENGINEVERSION => {:type => ::Thrift::Types::I16, :name => 'targetABCEngineVersion', :optional => true},
  SERVICEUUID => {:type => ::Thrift::Types::STRING, :name => 'serviceUuid', :optional => true},
  BONDINGREQUIRED => {:type => ::Thrift::Types::BOOL, :name => 'bondingRequired', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



5624
5625
5626
5627
5628
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 5624

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