본문으로 건너뛰기

사용자 차단 해제

채팅 내 특정 사용자의 메시지 수신을 차단을 해제 합니다.

호출 정보

Chat.BlockPlayerRemove(string {BLOCK_USER_ID}, PlayNANOODelegate {CALLBACK}) {}

호출 상세 정보

파라미터설명타입
blockUserId차단 사용자 식별 아이디string
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

string blockUserId = "string";
plugin.Chat.BlockPlayerRemove(blockUserId, OnChatBlockPlayerRemoveCallback);
}

void OnChatBlockPlayerRemoveCallback(string status, string errorCode, string jsonString, Dictionary<string, object> values)
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["Status"]);
}
else
{
Debug.Log("Fail");
}
}
}

통신 결과

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

통신 결과 상세 정보

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