Skip to main content

Query Channel

Queries details about channel and its subscribers.

Call Information

public void Channels (PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

plugin.Chat.Channels((status, error, jsonString, values) =>
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
foreach (Dictionary<string, object> value in (ArrayList)values["Items"])
{
Debug.Log(value["Channel"]);
Debug.Log(value["Count"]);
}
}
else
{
Debug.Log("Fail");
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code" : 200,
"message" : 0,
"value" : {
"Items" : [
{
"channel" : "CH_01",
"count" : 1234
}
]
}
}

Communication Result

Data KeyDescriptionType
channelChannel namestring
countChannel participant countinteger