Skip to main content
Version: 5.7.0

GetPresenceOfGroup

Gets the presence data for the given groupId. Will not include offline profiles unless includeOffline is set to true.

ServiceOperation
presenceGET_PRESENCE_OF_GROUP

Method Parameters

ParameterDescription
groupIdGets a list of Presence for the members of the specified group. The caller must be a member of the given group.
includeOfflineShould offline users be included in the response?

Usage

http://localhost:3000
string groupId = "aaa-bbb-ccc-ddd";
bool includeOffline = true;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PresenceService.GetPresenceOfGroup(groupId, includeOffline, successCallback, failureCallback);
JSON Response
{
"data": {
"presence": [
{
"user": {
"id": "a50a9aae-65fc-4171-b3f9-c0054b7e2d6b",
"name": "",
"pic": null,
"cxs": [
"13229:a50a9aae-65fc-4171-b3f9-c0054b7e2d6b:84uedu4cof8gvlj3r009cejcik"
]
},
"online": true,
"summaryFriendData": {},
"activity": {}
},
{
"user": {
"id": "07ba7ab2-3505-4342-b91f-6500fa8f5585",
"name": "",
"pic": null
},
"online": false,
"summaryFriendData": {},
"activity": {}
}
]
},
"status": 200
}