Skip to content

Commit 317c610

Browse files
Merge pull request #33 from LootLocker/feature/expose-more-dates-for-players-and-assets
Feature/expose more dates for players and assets
2 parents a1d3c8d + 655a1d2 commit 317c610

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ sysinfo.txt
5858
# Crashlytics generated file
5959
crashlytics-build.properties
6060

61+
.DS_Store

Runtime/Client/LootLockerBaseServerAPI.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ IEnumerator coroutine()
9898

9999
try
100100
{
101+
if (webRequest.error != null)
102+
{
103+
LootLockerSDKManager.DebugMessage($"Server request failed: {webRequest.error}");
104+
yield break;
105+
}
106+
101107
LootLockerSDKManager.DebugMessage("Server Response: " + request.httpMethod + " " + request.endpoint + " completed in " + (Time.time - startTime).ToString("n4") + " secs.\nResponse: " + webRequest.downloadHandler.text);
102108
}
103109
catch

Runtime/Game/Requests/LootLockerSessionRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public class LootLockerSessionResponse : LootLockerResponse
7676
public int player_id { get; set; }
7777
public bool seen_before { get; set; }
7878
public string public_uid { get; set; }
79+
public DateTime player_created_at { get; set; }
7980
public bool check_grant_notifications { get; set; }
8081
public bool check_deactivation_notifications { get; set; }
8182
public int[] check_dlcs { get; set; }

Runtime/Game/Requests/PlayerRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public class LootLockerInventory
130130
public int? variation_id { get; set; }
131131
public string rental_option_id { get; set; }
132132
public string acquisition_source { get; set; }
133+
public DateTime acquisition_date { get; set; }
133134
public LootLockerCommonAsset asset { get; set; }
134135
public LootLockerRental rental { get; set; }
135136

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.lootlocker.lootlockersdk",
3-
"version": "1.1.22",
3+
"version": "1.1.23",
44
"displayName": "LootLocker",
55
"description": "LootLocker SDK",
66
"unity": "2019.2",

0 commit comments

Comments
 (0)