Skip to content

Commit 44e1217

Browse files
Erik Bylundkirre-bylund
authored andcommitted
Fix usage of new errorData structure in samples
1 parent 5353ccb commit 44e1217

File tree

9 files changed

+34
-34
lines changed

9 files changed

+34
-34
lines changed

Samples~/LootLockerExamples/1a - GuestLoginLootLockerIdentifier/GuestLoginLootLockerIdentifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void Start()
3030
}
3131
else
3232
{
33-
loginInformationText.text = "Error" + response.Error;
33+
loginInformationText.text = "Error" + response.errorData.message;
3434
}
3535
});
3636
}

Samples~/LootLockerExamples/1b - GuestLoginUniqueIdentifier/GuestLoginUniqueIdentifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void Start()
3030
}
3131
else
3232
{
33-
loginInformationText.text = "Error" + response.Error;
33+
loginInformationText.text = "Error" + response.errorData.message;
3434
}
3535
});
3636
}

Samples~/LootLockerExamples/2a - PlayerTypeLeaderboard/PlayerTypeLeaderboard.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void StartGuestSession()
5454
}
5555
else
5656
{
57-
infoText.text = "Error" + response.Error;
57+
infoText.text = "Error" + response.errorData.message;
5858
}
5959
});
6060
}
@@ -83,7 +83,7 @@ public void UploadScore()
8383
}
8484
else
8585
{
86-
infoText.text = "Error submitting score:" + response.Error;
86+
infoText.text = "Error submitting score:" + response.errorData.message;
8787
}
8888
});
8989
}
@@ -148,13 +148,13 @@ void UpdateLeaderboardCentered()
148148
}
149149
else
150150
{
151-
infoText.text = "Could not update centered scores:" + scoreResponse.Error;
151+
infoText.text = "Could not update centered scores:" + scoreResponse.errorData.message;
152152
}
153153
});
154154
}
155155
else
156156
{
157-
infoText.text = "Could not get member rank:" + memberResponse.Error;
157+
infoText.text = "Could not get member rank:" + memberResponse.errorData.message;
158158
}
159159
});
160160
}

Samples~/LootLockerExamples/2b - GenericTypeLeaderboardArcadeStyle/GenericTypeLeaderboard.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void StartGuestSession()
5454
}
5555
else
5656
{
57-
infoText.text = "Error" + response.Error;
57+
infoText.text = "Error" + response.errorData.message;
5858
}
5959
});
6060
}
@@ -86,7 +86,7 @@ public void UploadScore()
8686
}
8787
else
8888
{
89-
infoText.text = "Error submitting score:" + response.Error;
89+
infoText.text = "Error submitting score:" + response.errorData.message;
9090
}
9191
});
9292
}
@@ -150,13 +150,13 @@ void UpdateLeaderboardCentered(string memberID)
150150
}
151151
else
152152
{
153-
infoText.text = "Could not update centered scores:" + scoreResponse.Error;
153+
infoText.text = "Could not update centered scores:" + scoreResponse.errorData.message;
154154
}
155155
});
156156
}
157157
else
158158
{
159-
infoText.text = "Could not get member rank:" + memberResponse.Error;
159+
infoText.text = "Could not get member rank:" + memberResponse.errorData.message;
160160
}
161161
});
162162
}

Samples~/LootLockerExamples/2c - FloatLeaderboard/FloatLeaderboard.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void StartGuestSession()
5454
}
5555
else
5656
{
57-
infoText.text = "Error" + response.Error;
57+
infoText.text = "Error" + response.errorData.message;
5858
}
5959
});
6060
}
@@ -88,7 +88,7 @@ public void UploadScore()
8888
}
8989
else
9090
{
91-
infoText.text = "Error submitting score:" + response.Error;
91+
infoText.text = "Error submitting score:" + response.errorData.message;
9292
}
9393
});
9494
}
@@ -152,13 +152,13 @@ void UpdateLeaderboardCentered()
152152
}
153153
else
154154
{
155-
infoText.text = "Could not update centered scores:" + scoreResponse.Error;
155+
infoText.text = "Could not update centered scores:" + scoreResponse.errorData.message;
156156
}
157157
});
158158
}
159159
else
160160
{
161-
infoText.text = "Could not get member rank:" + memberResponse.Error;
161+
infoText.text = "Could not get member rank:" + memberResponse.errorData.message;
162162
}
163163
});
164164
}

Samples~/LootLockerExamples/3 - PlayerNames/PlayerNames.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void Start()
3434
}
3535
else
3636
{
37-
informationText.text = "Error" + response.Error;
37+
informationText.text = "Error" + response.errorData.message;
3838
}
3939
});
4040
}
@@ -50,7 +50,7 @@ public void SetPlayerName()
5050
}
5151
else
5252
{
53-
informationText.text = "Could not set player name:"+response.Error;
53+
informationText.text = "Could not set player name:"+response.errorData.message;
5454
}
5555
});
5656
}
@@ -66,7 +66,7 @@ public void GetPlayerName()
6666
}
6767
else
6868
{
69-
informationText.text = "Could not set player name:"+response.Error;
69+
informationText.text = "Could not set player name:"+response.errorData.message;
7070
}
7171
});
7272
}

Samples~/LootLockerExamples/4 - PlayerStorage/PlayerStorage.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void Start()
3636
}
3737
else
3838
{
39-
informationText.text = "Error" + response.Error;
39+
informationText.text = "Error" + response.errorData.message;
4040
}
4141
});
4242
}
@@ -52,7 +52,7 @@ void GetPlayerStorage()
5252
}
5353
else
5454
{
55-
informationText.text = "Error" + response.Error;
55+
informationText.text = "Error" + response.errorData.message;
5656
}
5757
});
5858
}
@@ -69,7 +69,7 @@ public void CreateOrUpdateKeyValue()
6969
}
7070
else
7171
{
72-
informationText.text = "Error" + response.Error;
72+
informationText.text = "Error" + response.errorData.message;
7373
}
7474
});
7575
}
@@ -86,7 +86,7 @@ public void DeleteKeyValue()
8686
}
8787
else
8888
{
89-
informationText.text = "Error" + response.Error;
89+
informationText.text = "Error" + response.errorData.message;
9090
}
9191
});
9292
}

Samples~/LootLockerExamples/5 - WhiteLabel/WhiteLabelLogin.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void Login()
3232
if (!loginResponse.success)
3333
{
3434
// Error
35-
infoText.text = "Error logging in:" + loginResponse.Error;
35+
infoText.text = "Error logging in:" + loginResponse.errorData.message;
3636
return;
3737
}
3838
else
@@ -59,7 +59,7 @@ public void Login()
5959
else
6060
{
6161
// Error
62-
infoText.text = "Error starting LootLocker session:" + startSessionResponse.Error;
62+
infoText.text = "Error starting LootLocker session:" + startSessionResponse.errorData.message;
6363
}
6464
});
6565
});
@@ -75,7 +75,7 @@ public void CreateAccount()
7575
{
7676
if (!response.success)
7777
{
78-
infoText.text = "Error signing up:"+response.Error;
78+
infoText.text = "Error signing up:"+response.errorData.message;
7979
return;
8080
}
8181
else
@@ -99,7 +99,7 @@ public void ResendVerificationEmail()
9999
}
100100
else
101101
{
102-
Debug.Log("Error sending verification email:" + response.Error);
102+
Debug.Log("Error sending verification email:" + response.errorData.message);
103103
}
104104

105105
});
@@ -116,7 +116,7 @@ public void SendResetPassword()
116116
}
117117
else
118118
{
119-
Debug.Log("Error sending password-reset-link:" + response.Error);
119+
Debug.Log("Error sending password-reset-link:" + response.errorData.message);
120120
}
121121
});
122122
}

Samples~/LootLockerExamples/7 - PlayerFiles/PlayerFiles.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void Start()
4343
}
4444
else
4545
{
46-
informationText.text = "Error" + response.Error + "\n";
46+
informationText.text = "Error" + response.errorData.message + "\n";
4747
}
4848
});
4949
}
@@ -69,7 +69,7 @@ public void GetPlayerFiles()
6969
}
7070
else
7171
{
72-
informationText.text += "Error" + response.Error + "\n";
72+
informationText.text += "Error" + response.errorData.message + "\n";
7373
}
7474
});
7575
}
@@ -94,7 +94,7 @@ public void GetPlayerFileContent()
9494
}
9595
else
9696
{
97-
informationText.text += "Error" + response.Error + "\n";
97+
informationText.text += "Error" + response.errorData.message + "\n";
9898
}
9999
});
100100
}
@@ -149,7 +149,7 @@ public void NewPlayerFile()
149149
}
150150
else
151151
{
152-
informationText.text += "Error" + response.Error + "\n";
152+
informationText.text += "Error" + response.errorData.message + "\n";
153153
}
154154
GetPlayerFiles();
155155
});
@@ -166,7 +166,7 @@ public void NewPlayerFile()
166166
}
167167
else
168168
{
169-
informationText.text += "Error" + response.Error + "\n";
169+
informationText.text += "Error" + response.errorData.message + "\n";
170170
}
171171
GetPlayerFiles();
172172
});
@@ -193,7 +193,7 @@ void UpdateFile(int fileID)
193193
}
194194
else
195195
{
196-
informationText.text += "Error" + response.Error + "\n";
196+
informationText.text += "Error" + response.errorData.message + "\n";
197197
}
198198
GetPlayerFiles();
199199
});
@@ -211,7 +211,7 @@ void UpdateFile(int fileID)
211211
}
212212
else
213213
{
214-
informationText.text += "Error" + response.Error + "\n";
214+
informationText.text += "Error" + response.errorData.message + "\n";
215215
}
216216
GetPlayerFiles();
217217
});
@@ -231,7 +231,7 @@ public void DeleteFile()
231231
}
232232
else
233233
{
234-
informationText.text += "Error" + response.Error + "\n";
234+
informationText.text += "Error" + response.errorData.message + "\n";
235235
}
236236
});
237237
}

0 commit comments

Comments
 (0)