본문으로 건너뛰기

전체 재화 조회

플레이어가 보유한 게임 내 전체 재화 정보를 조회 합니다.

호출 정보

CurrencyAll(PlayNANOODelegate callback) {}

호출 상세 정보

파라미터설명타입
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

plugin.CurrencyAll((status, errorMessage, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
foreach(Dictionary<string, object> item in (ArrayList)values["items"])
{
Debug.Log(item["currency"]);
Debug.Log(item["amount"]);
}
}
else
{
Debug.Log("Fail");
}
});
}
}

통신 결과

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"items" : [
{
"currency": "CurrencyCode",
"amount": 100
}
]
}

통신 결과 상세 정보

데이터키설명타입
items.currency재화 코드string
items.amount보유 재화double