Gamebase SDK for Android  2.20.2
Toast Gamebase Platform
PurchasableItem Class Reference

The information of the item that can buy. More...

Inheritance diagram for PurchasableItem:
Inheritance graph
Collaboration diagram for PurchasableItem:
Collaboration graph

Public Member Functions

String toJsonString ()
 
String toPrettyJsonString ()
 
String toString ()
 

Static Public Member Functions

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)
 

Public Attributes

long itemSeq
 
float price
 
String currency
 
String itemName
 
String marketItemId
 
String productType
 
boolean isActive
 
String gamebaseProductId
 
String localizedPrice
 
String localizedTitle
 
String localizedDescription
 

Detailed Description

Member Function Documentation

◆ from()

static PurchasableItem from ( @Nullable String  jsonString)
static

Factory method to create VO instance.

Parameters
jsonStringExtracts the VO class instance from this JSON String.
Returns
VO instance
Here is the call graph for this function:

◆ fromJson() [1/3]

static <T> T fromJson ( @NonNull JSONObject  jsonObject,
Class< T >  classOfT 
)
staticinherited
Here is the call graph for this function:

◆ fromJson() [2/3]

static <T> T fromJson ( @NonNull String  json,
Class< T >  classOfT 
)
staticinherited
Here is the caller graph for this function:

◆ fromJson() [3/3]

static <T> T fromJson ( @NonNull String  json,
Type  type 
)
staticinherited

◆ toJsonString()

String toJsonString ( )
inherited
Here is the caller graph for this function:

◆ toPrettyJsonString()

String toPrettyJsonString ( )
inherited

◆ toString()

String toString ( )
inherited

Reimplemented in TransferAccountRenewConfiguration.

Here is the call graph for this function:

Member Data Documentation

◆ currency

String currency

◆ gamebaseProductId

String gamebaseProductId

◆ isActive

boolean isActive

◆ itemName

String itemName

◆ itemSeq

long itemSeq

◆ localizedDescription

String localizedDescription

◆ localizedPrice

String localizedPrice

◆ localizedTitle

String localizedTitle

◆ marketItemId

String marketItemId

◆ price

float price

◆ productType

String productType