Skip to main content
Version: 6.0.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
{
"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": {
"cus_firstName": "Super",
"cus_surName": "Star",
"cus_position": "forward",
"cus_goals": 2,
"cus_assists": 4
},
"_serverTime": 1637946319239
},
"status": 200
}