Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of new errorData structure in samples #160

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void Start()
}
else
{
loginInformationText.text = "Error" + response.Error;
loginInformationText.text = "Error" + response.errorData.message;
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void Start()
}
else
{
loginInformationText.text = "Error" + response.Error;
loginInformationText.text = "Error" + response.errorData.message;
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void StartGuestSession()
}
else
{
infoText.text = "Error" + response.Error;
infoText.text = "Error" + response.errorData.message;
}
});
}
Expand Down Expand Up @@ -83,7 +83,7 @@ public void UploadScore()
}
else
{
infoText.text = "Error submitting score:" + response.Error;
infoText.text = "Error submitting score:" + response.errorData.message;
}
});
}
Expand Down Expand Up @@ -148,13 +148,13 @@ void UpdateLeaderboardCentered()
}
else
{
infoText.text = "Could not update centered scores:" + scoreResponse.Error;
infoText.text = "Could not update centered scores:" + scoreResponse.errorData.message;
}
});
}
else
{
infoText.text = "Could not get member rank:" + memberResponse.Error;
infoText.text = "Could not get member rank:" + memberResponse.errorData.message;
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void StartGuestSession()
}
else
{
infoText.text = "Error" + response.Error;
infoText.text = "Error" + response.errorData.message;
}
});
}
Expand Down Expand Up @@ -86,7 +86,7 @@ public void UploadScore()
}
else
{
infoText.text = "Error submitting score:" + response.Error;
infoText.text = "Error submitting score:" + response.errorData.message;
}
});
}
Expand Down Expand Up @@ -150,13 +150,13 @@ void UpdateLeaderboardCentered(string memberID)
}
else
{
infoText.text = "Could not update centered scores:" + scoreResponse.Error;
infoText.text = "Could not update centered scores:" + scoreResponse.errorData.message;
}
});
}
else
{
infoText.text = "Could not get member rank:" + memberResponse.Error;
infoText.text = "Could not get member rank:" + memberResponse.errorData.message;
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void StartGuestSession()
}
else
{
infoText.text = "Error" + response.Error;
infoText.text = "Error" + response.errorData.message;
}
});
}
Expand Down Expand Up @@ -88,7 +88,7 @@ public void UploadScore()
}
else
{
infoText.text = "Error submitting score:" + response.Error;
infoText.text = "Error submitting score:" + response.errorData.message;
}
});
}
Expand Down Expand Up @@ -152,13 +152,13 @@ void UpdateLeaderboardCentered()
}
else
{
infoText.text = "Could not update centered scores:" + scoreResponse.Error;
infoText.text = "Could not update centered scores:" + scoreResponse.errorData.message;
}
});
}
else
{
infoText.text = "Could not get member rank:" + memberResponse.Error;
infoText.text = "Could not get member rank:" + memberResponse.errorData.message;
}
});
}
Expand Down
6 changes: 3 additions & 3 deletions Samples~/LootLockerExamples/3 - PlayerNames/PlayerNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void Start()
}
else
{
informationText.text = "Error" + response.Error;
informationText.text = "Error" + response.errorData.message;
}
});
}
Expand All @@ -50,7 +50,7 @@ public void SetPlayerName()
}
else
{
informationText.text = "Could not set player name:"+response.Error;
informationText.text = "Could not set player name:"+response.errorData.message;
}
});
}
Expand All @@ -66,7 +66,7 @@ public void GetPlayerName()
}
else
{
informationText.text = "Could not set player name:"+response.Error;
informationText.text = "Could not set player name:"+response.errorData.message;
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void Start()
}
else
{
informationText.text = "Error" + response.Error;
informationText.text = "Error" + response.errorData.message;
}
});
}
Expand All @@ -52,7 +52,7 @@ void GetPlayerStorage()
}
else
{
informationText.text = "Error" + response.Error;
informationText.text = "Error" + response.errorData.message;
}
});
}
Expand All @@ -69,7 +69,7 @@ public void CreateOrUpdateKeyValue()
}
else
{
informationText.text = "Error" + response.Error;
informationText.text = "Error" + response.errorData.message;
}
});
}
Expand All @@ -86,7 +86,7 @@ public void DeleteKeyValue()
}
else
{
informationText.text = "Error" + response.Error;
informationText.text = "Error" + response.errorData.message;
}
});
}
Expand Down
10 changes: 5 additions & 5 deletions Samples~/LootLockerExamples/5 - WhiteLabel/WhiteLabelLogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void Login()
if (!loginResponse.success)
{
// Error
infoText.text = "Error logging in:" + loginResponse.Error;
infoText.text = "Error logging in:" + loginResponse.errorData.message;
return;
}
else
Expand All @@ -59,7 +59,7 @@ public void Login()
else
{
// Error
infoText.text = "Error starting LootLocker session:" + startSessionResponse.Error;
infoText.text = "Error starting LootLocker session:" + startSessionResponse.errorData.message;
}
});
});
Expand All @@ -75,7 +75,7 @@ public void CreateAccount()
{
if (!response.success)
{
infoText.text = "Error signing up:"+response.Error;
infoText.text = "Error signing up:"+response.errorData.message;
return;
}
else
Expand All @@ -99,7 +99,7 @@ public void ResendVerificationEmail()
}
else
{
Debug.Log("Error sending verification email:" + response.Error);
Debug.Log("Error sending verification email:" + response.errorData.message);
}

});
Expand All @@ -116,7 +116,7 @@ public void SendResetPassword()
}
else
{
Debug.Log("Error sending password-reset-link:" + response.Error);
Debug.Log("Error sending password-reset-link:" + response.errorData.message);
}
});
}
Expand Down
16 changes: 8 additions & 8 deletions Samples~/LootLockerExamples/7 - PlayerFiles/PlayerFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void Start()
}
else
{
informationText.text = "Error" + response.Error + "\n";
informationText.text = "Error" + response.errorData.message + "\n";
}
});
}
Expand All @@ -69,7 +69,7 @@ public void GetPlayerFiles()
}
else
{
informationText.text += "Error" + response.Error + "\n";
informationText.text += "Error" + response.errorData.message + "\n";
}
});
}
Expand All @@ -94,7 +94,7 @@ public void GetPlayerFileContent()
}
else
{
informationText.text += "Error" + response.Error + "\n";
informationText.text += "Error" + response.errorData.message + "\n";
}
});
}
Expand Down Expand Up @@ -149,7 +149,7 @@ public void NewPlayerFile()
}
else
{
informationText.text += "Error" + response.Error + "\n";
informationText.text += "Error" + response.errorData.message + "\n";
}
GetPlayerFiles();
});
Expand All @@ -166,7 +166,7 @@ public void NewPlayerFile()
}
else
{
informationText.text += "Error" + response.Error + "\n";
informationText.text += "Error" + response.errorData.message + "\n";
}
GetPlayerFiles();
});
Expand All @@ -193,7 +193,7 @@ void UpdateFile(int fileID)
}
else
{
informationText.text += "Error" + response.Error + "\n";
informationText.text += "Error" + response.errorData.message + "\n";
}
GetPlayerFiles();
});
Expand All @@ -211,7 +211,7 @@ void UpdateFile(int fileID)
}
else
{
informationText.text += "Error" + response.Error + "\n";
informationText.text += "Error" + response.errorData.message + "\n";
}
GetPlayerFiles();
});
Expand All @@ -231,7 +231,7 @@ public void DeleteFile()
}
else
{
informationText.text += "Error" + response.Error + "\n";
informationText.text += "Error" + response.errorData.message + "\n";
}
});
}
Expand Down
Loading