123456789101112131415161718192021222324 |
- using Godot;
- using Godot.Collections;
- namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
- {
- public partial class PurchasesResult : BillingResult
- {
- public PurchasesResult() { }
- public PurchasesResult(Dictionary purchasesResult)
- : base(purchasesResult)
- {
- try
- {
- Purchases = (purchasesResult.Contains("purchases") ? GooglePlayBillingUtils.ConvertPurchaseDictionaryArray((Array)purchasesResult["purchases"]) : null);
- }
- catch (System.Exception ex)
- {
- GD.Print("PurchasesResult: ", ex.ToString());
- }
- }
- public Purchase[] Purchases { get; set; }
- }
- }
|