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
Type | Name |
---|---|
System.Action<InitializationResult> | setResult |
RegisterService(IPurchasingService)
Declaration
public static void RegisterService(IPurchasingService service)
Parameters
Type | Name |
---|---|
MatchinghamGames.DealerModule.IPurchasingService | service |
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
Type | Name |
---|---|
System.String | productId |
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
Type | Name |
---|---|
System.Func<MatchinghamGames.DealerModule.Models.IapProduct,System.Boolean> | filter |
GetProduct(string)
Declaration
public static IapProduct GetProduct(string productId)
Returns
MatchinghamGames.DealerModule.Models.IapProduct
Parameters
Type | Name |
---|---|
System.String | productId |
IsPurchased(IapProduct)
Declaration
public static bool IsPurchased(IapProduct product)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
MatchinghamGames.DealerModule.Models.IapProduct | product |
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