Skip to main content
Version: 5.9.6

GetTBC

public BackendReturnObject GetTBC();

Description

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

Example

Synchronous

var bro = Backend.TBC.GetTBC();

LitJson.JsonData json = bro.GetReturnValuetoJSON();
int amountTBC = int.Parse(json["amountTBC"].ToString());

Debug.Log(amountTBC);

Asynchronous

Backend.TBC.GetTBC((callback) => 
{
LitJson.JsonData json = callback.GetReturnValuetoJSON();
int amountTBC = int.Parse(json["amountTBC"].ToString());

Debug.Log(amountTBC);
});

SendQueue

SendQueue.Enqueue(Backend.TBC.GetTBC, (callback) => 
{
LitJson.JsonData json = callback.GetReturnValuetoJSON();
int amountTBC = int.Parse(json["amountTBC"].ToString());

Debug.Log(amountTBC);
});

Return cases

Success cases

When the lookup is successful
statusCode : 200

returnValue : refer to GetReturnValuetoJSON

GetReturnValuetoJSON

{"amountTBC":4470}