Skip to main content

Query Item Quantity

Queries the quantity of items registered in the player's Inbox.

Call Information

public void Count (string tableCode, PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
tableCodeTable Codestring
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

string tableCode = "TABLE_CODE";

plugin.InboxManager.Count(tableCode, (status, error, jsonString, values) =>
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["Count"]);
}
else
{
Debug.Log("Fail");
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Count" : 100
}

Communication Result Details

Data KeyDescriptionType
CountQuantity of items ownedinteger