This guide helps you understand what a typical API response looks like from LootLocker in Unity. You can learn more about all API calls in the Reference documentation linked below.
Every response inherits from the LootLockerResponse.
1
publicclassLootLockerResponse
2
{
3
publicbool hasError;
4
publicint statusCode;
5
publicstring text;
6
publicbool status;
7
publicstring message;
8
publicstring Error;
9
publicstring EventId;
10
}
Copied!
In any response from the callback of LootLocker methods, you get the structure shown above. You can get the raw response text and deserialize it into any JSON structure
Example Response
This example response is for the GetPersistentStorageResponse API call
We also have a class for each response. The response class contains all the variables from any JSON response from all methods. You can see this when checking out the Sample App that comes with the SDK. You can also check the API responses for the JSON response expected.