Skip to content

Commit d10f90f

Browse files
author
Mikkel Sørensen
committed
Obsoleted and created new querry function name
1 parent 977a0a0 commit d10f90f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4705,6 +4705,22 @@ public static void BeginSteamPurchaseRedemptionForClass(int classId, string stea
47054705
});
47064706
}
47074707

4708+
[Obsolete("This function will be removed on a later date. Use QuerrySteamPurchaseRedemption instead.")]
4709+
public static void BeginSteamPurchaseRedemption(string entitlementId, Action<LootLockerQuerySteamPurchaseRedemptionStatusResponse> onComplete)
4710+
{
4711+
if (!CheckInitialized())
4712+
{
4713+
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerQuerySteamPurchaseRedemptionStatusResponse>());
4714+
return;
4715+
}
4716+
var body = LootLockerJson.SerializeObject(new LootLockerQuerySteamPurchaseRedemptionStatusRequest()
4717+
{
4718+
entitlement_id = entitlementId
4719+
});
4720+
4721+
LootLockerServerRequest.CallAPI(LootLockerEndPoints.querySteamPurchaseRedemptionStatus.endPoint, LootLockerEndPoints.querySteamPurchaseRedemptionStatus.httpMethod, body, onComplete: (serverResponse) => { LootLockerResponse.Deserialize(onComplete, serverResponse); });
4722+
}
4723+
47084724
/// <summary>
47094725
/// Check the Steam Purchase status for a given entitlement
47104726
///
@@ -4713,7 +4729,7 @@ public static void BeginSteamPurchaseRedemptionForClass(int classId, string stea
47134729
/// </summary>
47144730
/// <param name="entitlementId">The id of the entitlement to check the status for</param>
47154731
/// <param name="onComplete">onComplete Action for handling the response</param>
4716-
public static void BeginSteamPurchaseRedemption(string entitlementId, Action<LootLockerQuerySteamPurchaseRedemptionStatusResponse> onComplete)
4732+
public static void QuerrySteamPurchaseRedemption(string entitlementId, Action<LootLockerQuerySteamPurchaseRedemptionStatusResponse> onComplete)
47174733
{
47184734
if (!CheckInitialized())
47194735
{

0 commit comments

Comments
 (0)