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

  currency

currency

@property (nonatomic, strong) NSString *currency

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

Allocation

+ purchasableItemWithResult:

Initialize the class with JSON Value.

+ (instancetype)purchasableItemWithResult:(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