mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
25 lines
734 B
C#
25 lines
734 B
C#
using Godot;
|
|
using Godot.Collections;
|
|
|
|
namespace AndroidInAppPurchasesWithCSharp.GodotGooglePlayBilling
|
|
{
|
|
public partial class PurchasesResult : BillingResult
|
|
{
|
|
public PurchasesResult() { }
|
|
public PurchasesResult(Dictionary purchasesResult)
|
|
: base(purchasesResult)
|
|
{
|
|
try
|
|
{
|
|
Purchases = (purchasesResult.ContainsKey("purchases") ? GooglePlayBillingUtils.ConvertPurchaseDictionaryArray(purchasesResult["purchases"].AsGodotArray()) : null);
|
|
}
|
|
catch (System.Exception ex)
|
|
{
|
|
GD.Print("PurchasesResult: ", ex.ToString());
|
|
}
|
|
}
|
|
|
|
public Purchase[] Purchases { get; set; }
|
|
}
|
|
}
|