Skip to main content
Version: 5.7.0

ReadGroupEntitiesPageByOffset

Retrieve a page of group entity information based on the encoded context and specified page offset.

ServiceOperation
groupREAD_GROUP_ENTITIES_PAGE_BY_OFFSET

Method Parameters

ParameterDescription
contextThe context string returned from the server from a previous call to ReadGroupEntitiesPage or ReadGroupEntitiesPageByOffset
pageOffsetThe positive or negative page offset to fetch. Uses the last page retrieved using the context string to determine a starting point.

Usage

http://localhost:3000
string context = "eyJzZWFyY2hDcml0ZXJpYSI6eyJlbnRpdHlUeXBlIjp7IiRyZWdleCI6Ii4qaWxkLioiLCIkb3B0";
int pageOffset = 1;
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.Group.ReadGroupEntitiesPageByOffset(context, pageOffset, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"_serverTime": 1637946319239,
"results": {
"moreBefore": true,
"count": 3,
"items": [
{
"gameId": "20595",
"groupId": "fee55a37-5e86-43e8-942e-06bcbe1b701e",
"entityId": "ccbf996c-9e96-4935-b570-eebaab81c75a",
"ownerId": null,
"entityType": "RED",
"createdAt": 1462812845384,
"updatedAt": 1462812845384,
"version": 1,
"data": {
"third": true
},
"acl": {
"member": 2,
"other": 1
}
}
],
"page": 2,
"moreAfter": false
},
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJncm91cElkIjoiZmVlNTVhMzctNWU4Ni00M2U4LTk"
}
}