Skip to main content
Version: 5.7.0

ReadEntity

Reads a custom entity.

ServiceOperation
customEntityREAD_ENTITY

Method Parameters

ParameterDescription
entityTypeThe type of custom entity being read.
entityIdThe id of custom entity being read.

Usage

http://localhost:3000
string entityType = "athletes";
string entityId = "aaaa-bbbb-cccc-dddd";
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.CustomEntityService.ReadEntity(entityType, entityId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"entityId": "f9d91cda-3ece-447c-xxxx-046fa026520c",
"version": 1,
"acl": {
"other": 1
},
"ownerId": null,
"expiresAt": null,
"timeToLive": null,
"createdAt": 1573537595505,
"updatedAt": 1573537595505,
"entityType": "athletes",
"data": {
"firstName": "Super",
"surName": "Star",
"position": "forward",
"goals": 2,
"assists": 4
},
"_serverTime": 1637946319239
}
}