Skip to content

Commit e1b614f

Browse files
Erik Bylundkirre-bylund
authored andcommitted
Revert 'Account Linking' change done previously
1 parent 852cb22 commit e1b614f

File tree

4 files changed

+1
-179
lines changed

4 files changed

+1
-179
lines changed

Runtime/Client/LootLockerEndPoints.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ public class LootLockerEndPoints
3232
public static EndPointClass whiteLabelRequestAccountVerification = new EndPointClass("white-label-login/request-verification", LootLockerHTTPMethod.POST);
3333
public static EndPointClass whiteLabelLoginSessionRequest = new EndPointClass("v2/session/white-label", LootLockerHTTPMethod.POST);
3434

35-
// Account Linking
36-
[Header("Account Linking")]
37-
public static EndPointClass StartAccountLinkingProcess = new EndPointClass("upa/link/start", LootLockerHTTPMethod.POST);
38-
public static EndPointClass CheckAccountLinkingProcessStatus = new EndPointClass("upa/link/{0}", LootLockerHTTPMethod.GET);
39-
public static EndPointClass CancelAccountLinkingProcess = new EndPointClass("upa/link/{0}", LootLockerHTTPMethod.DELETE);
40-
public static EndPointClass UnlinkProviderFromAccount = new EndPointClass("player/providers/{0}", LootLockerHTTPMethod.DELETE);
41-
4235
// Player
4336
[Header("Player")]
4437
public static EndPointClass getPlayerInfo = new EndPointClass("v1/player/info", LootLockerHTTPMethod.GET);

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 1 addition & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using LootLocker.LootLockerEnums;
77
using static LootLocker.LootLockerConfig;
88
using System.Linq;
9-
using File = System.IO.File;
109
using System.Security.Cryptography;
10+
using static LootLocker.Requests.CurrentPlatform;
1111
#if UNITY_EDITOR
1212
using UnityEditor;
1313
#endif
@@ -1084,93 +1084,6 @@ public static void WhiteLabelLoginAndStartSession(string email, string password,
10841084

10851085
#endregion
10861086

1087-
#if LOOTLOCKER_ENABLE_ACCOUNT_LINKING
1088-
1089-
#region Account Linking
1090-
1091-
/// <summary>
1092-
/// Start an account linking process on behalf of the currently signed in player
1093-
/// When you want to link an additional provider to a player, you start by initiating an account link.The player can then navigate to the online link flow using the code_page_url and code, or the qr_code and continue the linking process.
1094-
/// For the duration of the linking process you can check the status using the CheckAccountLinkingProcessStatus method.
1095-
/// Returned from this method is the ID of the linking process, make sure to save that so that you can check the status of the process later.
1096-
/// https://ref.lootlocker.com/game-api/#start-account-link
1097-
/// </summary>
1098-
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerAccountLinkStartResponse</param>
1099-
public static void StartAccountLinkingProcess(Action<LootLockerAccountLinkStartResponse> onComplete)
1100-
{
1101-
if (!CheckInitialized())
1102-
{
1103-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerAccountLinkStartResponse>());
1104-
return;
1105-
}
1106-
1107-
var endpoint = LootLockerEndPoints.StartAccountLinkingProcess;
1108-
1109-
LootLockerServerRequest.CallAPI(endpoint.endPoint, endpoint.httpMethod, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
1110-
}
1111-
1112-
/// <summary>
1113-
/// Check the status of an ongoing account linking process
1114-
/// https://ref.lootlocker.com/game-api/#check-account-link-status
1115-
/// </summary>
1116-
/// <param name="LinkID">The ID of the account linking process which was returned when starting the linking process</param>
1117-
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerAccountLinkProcessStatusResponse</param>
1118-
public static void CheckAccountLinkingProcessStatus(string LinkID, Action<LootLockerAccountLinkProcessStatusResponse> onComplete)
1119-
{
1120-
if (!CheckInitialized())
1121-
{
1122-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerAccountLinkProcessStatusResponse>());
1123-
return;
1124-
}
1125-
1126-
var endpoint = LootLockerEndPoints.CheckAccountLinkingProcessStatus;
1127-
1128-
LootLockerServerRequest.CallAPI(string.Format(endpoint.endPoint, LinkID), endpoint.httpMethod, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
1129-
}
1130-
1131-
/// <summary>
1132-
/// Cancel an ongoing account linking process
1133-
/// The response will be empty unless an error occurs
1134-
/// https://ref.lootlocker.com/game-api/#cancel-account-link
1135-
/// </summary>
1136-
/// <param name="LinkID">The ID of the account linking process which was returned when starting the linking process</param>
1137-
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerCancelAccountLinkingProcessResponse</param>
1138-
public static void CancelAccountLinkingProcess(string LinkID, Action<LootLockerCancelAccountLinkingProcessResponse> onComplete)
1139-
{
1140-
if (!CheckInitialized())
1141-
{
1142-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerCancelAccountLinkingProcessResponse>());
1143-
return;
1144-
}
1145-
1146-
var endpoint = LootLockerEndPoints.CancelAccountLinkingProcess;
1147-
1148-
LootLockerServerRequest.CallAPI(string.Format(endpoint.endPoint, LinkID), endpoint.httpMethod, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
1149-
}
1150-
1151-
/// <summary>
1152-
/// Unlink a provider from the currently signed in player
1153-
/// The response will be empty unless an error occurs
1154-
/// https://ref.lootlocker.com/game-api/#unlink-provider
1155-
/// </summary>
1156-
/// <param name="Provider">What provider to unlink from the currently logged in player</param>
1157-
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerUnlinkProviderFromAccountResponse</param>
1158-
public static void UnlinkProviderFromAccount(Platforms Provider, Action<LootLockerUnlinkProviderFromAccountResponse> onComplete)
1159-
{
1160-
if (!CheckInitialized())
1161-
{
1162-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerUnlinkProviderFromAccountResponse>());
1163-
return;
1164-
}
1165-
1166-
var endpoint = LootLockerEndPoints.UnlinkProviderFromAccount;
1167-
1168-
LootLockerServerRequest.CallAPI(string.Format(endpoint.endPoint, CurrentPlatform.GetPlatformRepresentation(Provider).PlatformString), endpoint.httpMethod, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
1169-
}
1170-
1171-
#endregion
1172-
1173-
#endif
11741087
#region Player
11751088
/// <summary>
11761089
/// Get general information about the current current player, such as the XP, Level information and their account balance.

Runtime/Game/Requests/AccountLinkRequest.cs

Lines changed: 0 additions & 73 deletions
This file was deleted.

Runtime/Game/Requests/AccountLinkRequest.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)