Unblock User
Unblocks message reception from a specific user in chat.
Call Information
Chat.BlockPlayerRemove(string {BLOCK_USER_ID}, PlayNANOODelegate {CALLBACK}) {}
Call Details
| Parameter | Description | Type |
|---|---|---|
| blockUserId | Blocked user identification ID | string |
| callback | Communication Result | PlayNANOODelegate |
Source Code
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");
}
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| Status | Processing result | string |