본문으로 건너뛰기

플레이어 데이터 수정

리더보드에 기록 된 플레이어 추가 데이터를 수정 합니다.

호출 정보

public void Edit (string tableCode, string recordId, string extraData, PlayNANOODelegate callback){}

// 지난 회차 플레이어 추가 데이터 수정
public void EditPrev (string uid, string recordId, int rotationCount, string extraData, PlayNANOODelegate callback){}

호출 상세 정보

파라미터설명타입
tableCode테이블 코드string
recordId기록 아이디 (예. 플레이어 아이디)string
extraData추가 데이터string
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

string tableCode = "TableCode";
string recordId = "UserId";
string extraData = "Data";

plugin.LeaderboardManagerV20240301.Edit(tableCode, recordId, extraData, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});

// 지난 회차 플레이어 추가 데이터 수정
int rotationCount = 1;

plugin.LeaderboardManagerV20240301.EditPrev(tableCode, recordId, rotationCount, extraData, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}

통신 결과

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

통신 결과 상세 정보

데이터키설명타입
Status처리 결과string