Class: ProductDetail

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

ID =
1
BILLINGITEMID =
2
BILLINGCPID =
5
TYPE =
3
SUBTYPE =
4
NAME =
11
AUTHOR =
12
DETAILS =
13
14
NOTICE =
15
PROMOTIONINFO =
16
LATESTVERSION =
21
LATESTVERSIONSTRING =
22
VERSION =
23
VERSIONSTRING =
24
APPLICATIONVERSIONRANGE =
25
OWNED =
31
GRANTEDBYDEFAULT =
32
VALIDFOR =
41
VALIDUNTIL =
42
ONSALE =
51
SALESFLAGS =
52
AVAILABLEFORPRESENT =
53
AVAILABLEFORMYSELF =
54
PRICETIER =
61
PRICE =
62
PRICEINLINECOIN =
63
LOCALIZEDPRICE =
64
IMAGES =
91
ATTRIBUTES =
92
AUTHORID =
93
STICKERRESOURCETYPE =
94
PRODUCTPROPERTY =
95
PRODUCTSALESSTATE =
96
INSTALLEDTIME =
97
WISHPROPERTY =
101
SUBSCRIPTIONPROPERTY =
102
PRODUCTPROMOTIONPROPERTY =
103
AVAILABLEINCOUNTRY =
104
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  BILLINGITEMID => {:type => ::Thrift::Types::STRUCT, :name => 'billingItemId', :class => ::Price},
  BILLINGCPID => {:type => ::Thrift::Types::MAP, :name => 'billingCpId', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
  TYPE => {:type => ::Thrift::Types::MAP, :name => 'type', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
  SUBTYPE => {:type => ::Thrift::Types::STRING, :name => 'subtype'},
  NAME => {:type => ::Thrift::Types::I32, :name => 'name', :enum_class => ::P0_a_a_b_a_a_a3},
  AUTHOR => {:type => ::Thrift::Types::STRUCT, :name => 'author', :class => ::ProductProperty},
  DETAILS => {:type => ::Thrift::Types::I32, :name => 'details', :enum_class => ::P0_a_a_b_a_a_o1},
  COPYRIGHT => {:type => ::Thrift::Types::I64, :name => 'copyright'},
  NOTICE => {:type => ::Thrift::Types::STRUCT, :name => 'notice', :class => ::ProductWishProperty},
  PROMOTIONINFO => {:type => ::Thrift::Types::STRUCT, :name => 'promotionInfo', :class => ::ProductSubscriptionProperty},
  LATESTVERSION => {:type => ::Thrift::Types::I64, :name => 'latestVersion'},
  LATESTVERSIONSTRING => {:type => ::Thrift::Types::BOOL, :name => 'latestVersionString'},
  VERSION => {:type => ::Thrift::Types::I16, :name => 'version'},
  VERSIONSTRING => {:type => ::Thrift::Types::STRING, :name => 'versionString'},
  APPLICATIONVERSIONRANGE => {:type => ::Thrift::Types::STRING, :name => 'applicationVersionRange'},
  OWNED => {:type => ::Thrift::Types::STRING, :name => 'owned'},
  GRANTEDBYDEFAULT => {:type => ::Thrift::Types::STRING, :name => 'grantedByDefault'},
  VALIDFOR => {:type => ::Thrift::Types::I32, :name => 'validFor', :enum_class => ::P0_a_a_b_a_a_t3},
  VALIDUNTIL => {:type => ::Thrift::Types::STRING, :name => 'validUntil'},
  ONSALE => {:type => ::Thrift::Types::STRING, :name => 'onSale'},
  SALESFLAGS => {:type => ::Thrift::Types::STRING, :name => 'salesFlags'},
  AVAILABLEFORPRESENT => {:type => ::Thrift::Types::STRING, :name => 'availableForPresent'},
  AVAILABLEFORMYSELF => {:type => ::Thrift::Types::STRING, :name => 'availableForMyself'},
  PRICETIER => {:type => ::Thrift::Types::STRUCT, :name => 'priceTier', :class => ::PromotionInfo},
  PRICE => {:type => ::Thrift::Types::I64, :name => 'price'},
  PRICEINLINECOIN => {:type => ::Thrift::Types::STRING, :name => 'priceInLineCoin'},
  LOCALIZEDPRICE => {:type => ::Thrift::Types::I64, :name => 'localizedPrice'},
  IMAGES => {:type => ::Thrift::Types::STRING, :name => 'images'},
  ATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'attributes', :class => ::ApplicationVersionRange},
  AUTHORID => {:type => ::Thrift::Types::BOOL, :name => 'authorId'},
  STICKERRESOURCETYPE => {:type => ::Thrift::Types::BOOL, :name => 'stickerResourceType'},
  PRODUCTPROPERTY => {:type => ::Thrift::Types::I32, :name => 'productProperty'},
  PRODUCTSALESSTATE => {:type => ::Thrift::Types::I64, :name => 'productSalesState'},
  INSTALLEDTIME => {:type => ::Thrift::Types::BOOL, :name => 'installedTime'},
  WISHPROPERTY => {:type => ::Thrift::Types::SET, :name => 'wishProperty', :element => {:type => ::Thrift::Types::STRING}},
  SUBSCRIPTIONPROPERTY => {:type => ::Thrift::Types::BOOL, :name => 'subscriptionProperty'},
  PRODUCTPROMOTIONPROPERTY => {:type => ::Thrift::Types::BOOL, :name => 'productPromotionProperty'},
  AVAILABLEINCOUNTRY => {:type => ::Thrift::Types::I32, :name => 'availableInCountry'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10366

def validate
  unless @name.nil? || ::P0_a_a_b_a_a_a3::VALID_VALUES.include?(@name)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field name!')
  end
  unless @details.nil? || ::P0_a_a_b_a_a_o1::VALID_VALUES.include?(@details)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field details!')
  end
  unless @validFor.nil? || ::P0_a_a_b_a_a_t3::VALID_VALUES.include?(@validFor)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field validFor!')
  end
end