Skip to content

Commit 3ee26c8

Browse files
committed
fix: Make last_seen nullable
1 parent 0c51a5b commit 3ee26c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Runtime/Game/Requests/LootLockerSessionRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class LootLockerSessionResponse : LootLockerResponse
8080
/// <summary>
8181
/// The last time this player logged in
8282
/// </summary>
83-
public DateTime last_seen { get; set; }
83+
public DateTime? last_seen { get; set; }
8484
/// <summary>
8585
/// The public UID for this player
8686
/// </summary>

Tests/LootLockerTests/PlayMode/GuestSessionTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public IEnumerator StartGuestSession_WithStoredIdentifier_Succeeds()
212212
LootLockerSDKManager.StartGuestSession((startSessionResponse) =>
213213
{
214214
expectedIdentifier = startSessionResponse.player_identifier;
215-
lastSeenOnFirstSession = startSessionResponse.last_seen;
215+
lastSeenOnFirstSession = startSessionResponse.last_seen ?? DateTime.MinValue;
216216

217217
LootLockerSDKManager.EndSession((endSessionResponse) =>
218218
{

0 commit comments

Comments
 (0)