Skip to main content

Class Dealer

Declaration
public class Dealer : Module<Dealer, DealerConfig, DealerDebugger>

Properties

Logger

Declaration
public override ILog Logger { get; }

Restoring

Declaration
public static bool Restoring { get; }

Service

Declaration
public static IPurchasingService Service { get; }

Methods

Initialize(Action<InitializationResult>)

Declaration
protected override void Initialize(Action<InitializationResult> setResult)
Parameters
TypeName
System.Action<InitializationResult>setResult

RegisterService(IPurchasingService)

Declaration
public static void RegisterService(IPurchasingService service)
Parameters
TypeName
MatchinghamGames.DealerModule.IPurchasingServiceservice

TryRestore()

Declaration
public static bool TryRestore()
Returns

System.Boolean

TryPurchase(string, params string[])

Declaration
public static bool TryPurchase(string productId, params string[] tags)
Returns

System.Boolean

Parameters
TypeName
System.StringproductId
System.String[]tags

GetProducts(Func<IapProduct, bool>)

Declaration
public static IEnumerable<IapProduct> GetProducts(Func<IapProduct, bool> filter = null)
Returns

System.Collections.Generic.IEnumerable<MatchinghamGames.DealerModule.Models.IapProduct>

Parameters
TypeName
System.Func<MatchinghamGames.DealerModule.Models.IapProduct,System.Boolean>filter

GetProduct(string)

Declaration
public static IapProduct GetProduct(string productId)
Returns

MatchinghamGames.DealerModule.Models.IapProduct

Parameters
TypeName
System.StringproductId

IsPurchased(IapProduct)

Declaration
public static bool IsPurchased(IapProduct product)
Returns

System.Boolean

Parameters
TypeName
MatchinghamGames.DealerModule.Models.IapProductproduct

Events

BusyStateChanged

Declaration
public static event BusyStateDelegate BusyStateChanged
Event Type

MatchinghamGames.DealerModule.BusyStateDelegate

Purchased

Declaration
public static event PurchaseSuccessDelegate Purchased
Event Type

MatchinghamGames.DealerModule.PurchaseSuccessDelegate

Failed

Declaration
public static event PurchaseFailDelegate Failed
Event Type

MatchinghamGames.DealerModule.PurchaseFailDelegate

RestoreSuccess

Declaration
public static event Action RestoreSuccess
Event Type

System.Action

Expired

Declaration
public static event ProductExpireDelegate Expired
Event Type

MatchinghamGames.DealerModule.ProductExpireDelegate

RestoreFailed

Declaration
public static event Action RestoreFailed
Event Type

System.Action