TCGBPurchasableItem Class Reference

Inherits from NSObject
Declared in TCGBPurchasable.h

Overview

The TCGBPurchasableItem class is VO class of item entity.

Properties

  itemSeq

itemSeq

@property (assign) long itemSeq

Discussion

Item Sequence which is the number presented in Toast Cloud IAP Console.

Declared In

TCGBPurchasable.h

  price

item price

@property (assign) float price

Discussion

This value is from the market.

Warning: If there is no price data, it will be initialized to -1

Declared In

TCGBPurchasable.h

  itemName

item name

@property (nonatomic, strong) NSString *itemName

Discussion

Item name is from Toast Cloud IAP Console.

Declared In

TCGBPurchasable.h

  marketId

marketId

@property (nonatomic, strong) NSString *marketId

Discussion

which is actually AS.

Declared In

TCGBPurchasable.h

  marketItemId

marketItemId

@property (nonatomic, strong) NSString *marketItemId

Discussion

ItemID which is registered at market(itunesconnect).

Declared In

TCGBPurchasable.h

  gamebaseProductId

gamebaseProductId

@property (nonatomic, strong) NSString *gamebaseProductId

Discussion

ItemID which is registered at IAP Console.

Declared In

TCGBPurchasable.h

  usingStatus

usingStatus

@property (nonatomic, strong) NSString *usingStatus

Discussion

This string value represent if this item is available.

Declared In

TCGBPurchasable.h

  localizedPrice

localizedPrice

@property (nonatomic, strong) NSString *localizedPrice

Discussion

This string value represent price with currency.

Declared In

TCGBPurchasable.h

  productType

productType

@property (nonatomic, strong) NSString *productType

Discussion

This string value represent type of product. (CONSUMABLE, UNKNOWN, AUTO_RENEWABLE, CONSUMABLE_AUTO_RENEWABLE)

Declared In

TCGBPurchasable.h

  active

active

@property (nonatomic, assign, getter=isActive) BOOL active

Discussion

This boolean value represent

Declared In

TCGBPurchasable.h

Allocation

+ gamebaseProductWithDictionary:

Initialize the class with JSON Value.

+ (instancetype)gamebaseProductWithDictionary:(NSDictionary *)result

Parameters

result

result is a json formatted NSDictionary object. This is from Gamebase Server.

Return Value

Instance being initialized.

Declared In

TCGBPurchasable.h

+ toastProductWithDictionary:

Initialize the class with JSON Value.

+ (instancetype)toastProductWithDictionary:(NSDictionary *)result

Parameters

result

result is a json formatted NSDictionary object. This is from ToastCloud IAP Server.

Return Value

Instance being initialized.

Declared In

TCGBPurchasable.h