Query Blocked User
Queries players whose message reception is blocked.
Call Information
Chat.BlockPlayers(PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
tableCode | Table Code | string |
callback | Communication result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
plugin.Chat.BlockPlayerRemove(OnChatBlockPlayersCallback);
}
void OnChatBlockPlayersCallback(string status, string errorCode, string jsonString, Dictionary<string, object> values)
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
foreach (Dictionary<string, object> value in (ArrayList)values["Items"])
{
Debug.Log(value["BlockUserId"]);
Debug.Log(value["BlockUserName"]);
}
}
else
{
Debug.Log("Fail");
}
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Items" : [
{
"BlockUserId" : "String",
"BlockUserName" : "Integer"
}
]
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
BlockUserId | Blocked user ID | string |
BlockUserName | Blocked user's name or nickname | string |