본문으로 건너뛰기

중복 조회

플레이어 닉네임 중복 정보를 조회 합니다.

호출 정보

NicknameExists(string nickname, PlayNANOODelegate callback) {}

호출 상세 정보

파라미터설명타입
nickname플레이어 닉네임PlayNANOODelegate
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

string nickname = "string";
plugin.AccountManagerV20240401.NicknameExists(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");
}
}
});
}
}

통신 결과

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

통신 결과 상세 정보

데이터키설명타입
Status플레이어 닉네임 중복 결과
EXISTS : 중복
NOT_EXISTS : 중복아님
string
WithdrawalKey탈퇴 계정 조회 키string

에러 정보

플레이어가 탈퇴를 신청한 경우 ErrorCode : 30007
ErrorMessage : WithDrawalException