Skip to main content
Version: SDK-6.0.0

GetMyGameCash

public BackndMyGameCashReturnObject GetMyGameCash();

BackndMyGameCashReturnObject

GetMyCashByString

BackndMyGameCashReturnObject bro = Backnd.GameCash.GetMyGameCash();
int amountTBC = int.Parse(bro.GetMyCashByString());

Description

You can look up the information of the game user's current TBC(The Backnd Coin).

Example

Synchronous

BackndMyGameCashReturnObject bro = Backnd.GameCash.GetMyGameCash();

int amountTBC = int.Parse(json["amountTBC"].ToString());

Debug.Log(amountTBC);

Asynchronous

Backnd.GameCash.GetMyGameCash((callback) => 
{
int amountTBC = int.Parse(json["amountTBC"].ToString());

Debug.Log(amountTBC);
});

Return cases

Success cases

When the lookup is successful
statusCode : 200
message : Success returnValue : refer to GetReturnValuetoJSON

GetReturnValuetoJSON

{"amountTBC":4470}