2026-04-22 09:52:55 +08:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace AppsFlyerSDK
|
|
|
|
|
{
|
|
|
|
|
public enum AFPurchaseType
|
|
|
|
|
{
|
|
|
|
|
Subscription = 0,
|
|
|
|
|
OneTimePurchase = 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-05-20 14:29:11 +08:00
|
|
|
/// Purchase details class matching Android SDK AFPurchaseDetails
|
2026-04-22 09:52:55 +08:00
|
|
|
/// </summary>
|
|
|
|
|
public class AFPurchaseDetailsAndroid
|
|
|
|
|
{
|
|
|
|
|
public AFPurchaseType purchaseType { get; private set; }
|
|
|
|
|
public string purchaseToken { get; private set; }
|
|
|
|
|
public string productId { get; private set; }
|
|
|
|
|
|
2026-05-20 14:29:11 +08:00
|
|
|
public AFPurchaseDetailsAndroid(AFPurchaseType type, String purchaseToken, String productId)
|
2026-04-22 09:52:55 +08:00
|
|
|
{
|
|
|
|
|
this.purchaseType = type;
|
|
|
|
|
this.purchaseToken = purchaseToken;
|
|
|
|
|
this.productId = productId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|