跳转到主要内容

解除用户屏蔽

解除聊天中对特定用户的消息接收屏蔽。

调用信息

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

调用详细信息

参数说明类型
blockUserId屏蔽用户识别 IDstring
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