Skip to content

Commit 8ea35e9

Browse files
Erik Bylundkirre-bylund
authored andcommitted
Properly deprecate PollOrderStatus
1 parent ea3f345 commit 8ea35e9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4174,6 +4174,18 @@ public static void AndroidPurchaseVerification(string purchase_token, int asset_
41744174
LootLockerAPIManager.AndroidPurchaseVerification(data, onComplete);
41754175
}
41764176

4177+
[Obsolete("This function is deprecated and will be removed soon. Please use the function PollOrderStatus(int assetId, Action<LootLockerPurchaseOrderStatus> onComplete) instead")]
4178+
public static void PollOrderStatus(int assetId, Action<LootLockerClassLoadoutResponse> onComplete)
4179+
{
4180+
PollOrderStatus(assetId, (LootLockerPurchaseOrderStatus orderStatus) => onComplete(new LootLockerClassLoadoutResponse
4181+
{
4182+
errorData = orderStatus.errorData,
4183+
statusCode = orderStatus.statusCode,
4184+
success = orderStatus.success,
4185+
text = orderStatus.text
4186+
}));
4187+
}
4188+
41774189
/// <summary>
41784190
/// This will give you the current status of a purchase. These statuses can be returned;
41794191
/// open - The order is being processed

0 commit comments

Comments
 (0)