Skip to main content
Version: 5.7.0

GetPresenceOfUsers

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

ServiceOperation
presenceGET_PRESENCE_OF_USERS

Method Parameters

ParameterDescription
profileIdsGets a list of Presence for the specified profile ids.
includeOfflineShould offline users be included in the response?

Usage

http://localhost:3000
string[] profileIds = { "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.GetPresenceOfUsers(profileIds, includeOffline, successCallback, failureCallback);
JSON Response
{
"data": {
"presence": [
{
"user": {
"id": "aaa-bbb-ccc-ddd",
"name": "player1",
"pic": null,
"cxs": [
"22284:fb416888-e76d-425d-a06d-a5529bdba8d9:id58ohotujj893gomctos244al"
]
},
"online": true,
"summaryFriendData": {},
"activity": {
"LOCATION": "POKER_TABLE",
"STATUS": "PLAYING_GAME"
}
}
]
},
"status": 200
}