mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-05-01 22:08:00 +02:00
25 lines
715 B
C#
25 lines
715 B
C#
using Godot;
|
|
using Godot.Collections;
|
|
|
|
namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
|
|
{
|
|
public 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; }
|
|
}
|
|
}
|