Skip to main content

Query Blocked User

Queries players whose message reception is blocked.

Call Information

Chat.BlockPlayers(PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
tableCodeTable Codestring
callbackCommunication resultPlayNANOODelegate

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 KeyDescriptionType
BlockUserIdBlocked user IDstring
BlockUserNameBlocked user's name or nicknamestring