사용자 차단 조회
채팅 메시지 수신을 차단을 플레이어를 조회합니다.
호출 정보
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 |