|
6 | 6 | using LootLocker.LootLockerEnums;
|
7 | 7 | using static LootLocker.LootLockerConfig;
|
8 | 8 | using System.Linq;
|
9 |
| -using File = System.IO.File; |
10 | 9 | using System.Security.Cryptography;
|
| 10 | +using static LootLocker.Requests.CurrentPlatform; |
11 | 11 | #if UNITY_EDITOR
|
12 | 12 | using UnityEditor;
|
13 | 13 | #endif
|
@@ -1084,93 +1084,6 @@ public static void WhiteLabelLoginAndStartSession(string email, string password,
|
1084 | 1084 |
|
1085 | 1085 | #endregion
|
1086 | 1086 |
|
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 |
1174 | 1087 | #region Player
|
1175 | 1088 | /// <summary>
|
1176 | 1089 | /// Get general information about the current current player, such as the XP, Level information and their account balance.
|
|
0 commit comments