The information of the item that can buy.
More...
|
static PurchasableItem | from (@Nullable String jsonString) |
| Factory method to create VO instance. More...
|
|
static< T > T | fromJson (@NonNull String json, Class< T > classOfT) |
|
static< T > T | fromJson (@NonNull JSONObject jsonObject, Class< T > classOfT) |
|
static< T > T | fromJson (@NonNull String json, Type type) |
|
The information of the item that can buy.
The function GamebaseToastPurchasable#purchase(Activity, String, String, String, JSONObject, String, Function2) must use 'gamebaseProductId' value in this class.
- See also
- GamebaseToastPurchasable#requestProductDetails(Activity, String, Function3)
- Since
- 2016-12-07 @update 2020-06-23 Change main key to 'gamebaseProductId' from 'itemSeq'.
◆ from()
Factory method to create VO instance.
- Parameters
-
jsonString | Extracts the VO class instance from this JSON String. |
- Returns
- VO instance
◆ fromJson() [1/3]
static <T> T fromJson |
( |
@NonNull JSONObject |
jsonObject, |
|
|
Class< T > |
classOfT |
|
) |
| |
|
staticinherited |
◆ fromJson() [2/3]
static <T> T fromJson |
( |
@NonNull String |
json, |
|
|
Class< T > |
classOfT |
|
) |
| |
|
staticinherited |
◆ fromJson() [3/3]
static <T> T fromJson |
( |
@NonNull String |
json, |
|
|
Type |
type |
|
) |
| |
|
staticinherited |
◆ toJsonString()
◆ toPrettyJsonString()
String toPrettyJsonString |
( |
| ) |
|
|
inherited |
◆ toString()
◆ currency
◆ gamebaseProductId
◆ isActive
◆ itemName
◆ itemSeq
◆ localizedDescription
String localizedDescription |
◆ localizedPrice
◆ localizedTitle
◆ marketItemId
◆ price
◆ productType