차단 내역 조회
플레이어 서비스 차단 정보를 조회합니다.
호출 정보
public void Reason (string blockKey, PlayNANOODelegate callback) {}
호출 상세 정보
파라미터 | 설명 | 타입 |
---|---|---|
blockKey | 단 조회 키 | String |
callback | 통신 결과 | PlayNANOODelegate |
소스 코드
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Start()
{
plugin = Plugin.GetInstance();
plugin.BlockManager.Reason(blockKey, (status, errorCode, jsonSTring, values) =>
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
foreach (Dictionary<string, object> value in (ArrayList)values["Items"])
{
Debug.Log(value["UserId"]);
Debug.Log(value["Reason"]);
Debug.Log(value["Permanent"]);
Debug.Log(value["ExpireDate"]);
Debug.Log(value["TimeUntilExpire"]);
foreach(string service in (string[])value["Services"])
{
Debug.Log(service);
}
}
}
else
{
Debug.Log("Fail");
}
});
}
}
통신 결과
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Items" : [
{
"UserId" : "String",
"Reason" : "String",
"Permanent" : "String",
"ExpireDate" : "String",
"TimeUntilExpire" : "Integer",
"Services" : [
"String"
]
}
]
}
통신 결과 상세 정보
데이터키 | 설명 | 타입 |
---|---|---|
UserId | 플레이어 아이디 | string |
Reason | 차단 사유 | string |
Permanent | 영구차단 여부 (Y / N) | string |
ExpireDate | 차단 만료 날짜 영구차단 인 경우 : permanent 제공 | string |
TimeUntilExpire | 차단 만료까지 남은 시간 영구차단 인 경우 : -1 제공 | string |
Services | 차단 서비스 코드 | array |