Ad fixes and appsflyer
This commit is contained in:
37
Assets/AppsFlyer/AFSDKPurchaseDetailsIOS.cs
Normal file
37
Assets/AppsFlyer/AFSDKPurchaseDetailsIOS.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AppsFlyerSDK
|
||||
{
|
||||
/// <summary>
|
||||
/// Purchase type enum matching iOS SDK AFSDKPurchaseType
|
||||
/// </summary>
|
||||
public enum AFSDKPurchaseType
|
||||
{
|
||||
Subscription,
|
||||
OneTimePurchase
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Purchase details class matching iOS SDK AFSDKPurchaseDetails
|
||||
/// </summary>
|
||||
public class AFSDKPurchaseDetailsIOS
|
||||
{
|
||||
public string productId { get; private set; }
|
||||
public string transactionId { get; private set; }
|
||||
public AFSDKPurchaseType purchaseType { get; private set; }
|
||||
|
||||
private AFSDKPurchaseDetailsIOS(string productId, string transactionId, AFSDKPurchaseType purchaseType)
|
||||
{
|
||||
this.productId = productId;
|
||||
this.transactionId = transactionId;
|
||||
this.purchaseType = purchaseType;
|
||||
}
|
||||
|
||||
public static AFSDKPurchaseDetailsIOS Init(string productId, string transactionId, AFSDKPurchaseType purchaseType)
|
||||
{
|
||||
return new AFSDKPurchaseDetailsIOS(productId, transactionId, purchaseType);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user