Class: ClientInfo

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/content_types.rb

Constant Summary collapse

CLIENTTYPE =
1
DEVICE =
2
VERSION =
3
USERAGENT =
4
CHANNEL =
5
DEVICEID =
6
MAC =
7
IP =
8
LONGITUDE =
9
LATITUDE =
10
FIELDS =
{
  CLIENTTYPE => {:type => ::Thrift::Types::STRING, :name => 'clientType', :optional => true},
  DEVICE => {:type => ::Thrift::Types::STRING, :name => 'device', :optional => true},
  VERSION => {:type => ::Thrift::Types::STRING, :name => 'version', :optional => true},
  USERAGENT => {:type => ::Thrift::Types::STRING, :name => 'userAgent', :optional => true},
  CHANNEL => {:type => ::Thrift::Types::STRING, :name => 'channel', :optional => true},
  DEVICEID => {:type => ::Thrift::Types::STRING, :name => 'deviceId', :optional => true},
  MAC => {:type => ::Thrift::Types::STRING, :name => 'mac', :optional => true},
  IP => {:type => ::Thrift::Types::STRING, :name => 'ip', :optional => true},
  LONGITUDE => {:type => ::Thrift::Types::STRING, :name => 'longitude', :optional => true},
  LATITUDE => {:type => ::Thrift::Types::STRING, :name => 'latitude', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



675
# File 'lib/content_types.rb', line 675

def struct_fields; FIELDS; end

#validateObject



677
678
# File 'lib/content_types.rb', line 677

def validate
end