본문으로 건너뛰기

사용자 차단 조회

채팅 메시지 수신을 차단을 플레이어를 조회합니다.

호출 정보

Chat.BlockPlayers(PlayNANOODelegate callback) {}

호출 상세 정보

파라미터설명타입
tableCode테이블 코드string
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

plugin.Chat.BlockPlayerRemove(OnChatBlockPlayersCallback);
}

void OnChatBlockPlayersCallback(string status, string errorCode, string jsonString, Dictionary<string, object> values)
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
foreach (Dictionary<string, object> value in (ArrayList)values["Items"])
{
Debug.Log(value["BlockUserId"]);
Debug.Log(value["BlockUserName"]);
}
}
else
{
Debug.Log("Fail");
}
}
}

통신 결과

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Items" : [
{
"BlockUserId" : "String",
"BlockUserName" : "Integer"
}
]
}

통신 결과 상세 정보

데이터키설명타입
BlockUserId차단된 사용자 식별 아이디string
BlockUserName차단된 사용자 이름 또는 닉네임string