Query Duplicate
Checks for duplicate player nickname information.
Call Information
AccountNicknameExists(string nickname, PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
nickname | Player's nickname | PlayNANOODelegate |
callback | Communication result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Start()
{
plugin = Plugin.GetInstance();
string nickname = "string";
plugin.AccountNicknameExists(nickname, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["status"].ToString());
}
else
{
if (values != null)
{
if (values["ErrorCode"].ToString() == "30007")
{
Debug.Log(values["WithdrawalKey"].ToString());
}
else if (values["ErrorCode"].ToString() == "70002")
{
Debug.Log(values["BlockKey"].ToString());
}
else
{
Debug.Log("Fail");
}
}
else
{
Debug.Log("Fail");
}
}
});
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
Status | Player nickname duplicate query result EXISTS : Duplicate NOT_EXISTS : Not duplicate | string |
WithdrawalKey | Account withdrawal query key | string |
Error Information
Player has requested withdrawal
ErrorCode : 30007
ErrorMessage : WithDrawalException