Skip to main content

Unblock User

Unblocks the reception of messages from a specific user in chat.
Allows receiving messages from a specific user in chat

Call Information

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

Call Information Details

ParameterDescriptionType
blockUserIdBlocked user 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");
}
}
}

Communication Result

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

Communication Result Details

Data KeyDescriptionType
StatusOperation resultstring