Skip to main content

Unblock User

Unblocks message reception from a specific user in chat.

Call Information

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

Call Details

ParameterDescriptionType
blockUserIdBlocked user identification IDstring
callbackCommunication ResultPlayNANOODelegate

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 KeyDescriptionType
StatusProcessing resultstring