rise-and-swine/Assets/Scripts/Assembly-CSharp/IAPInterface.cs
2023-02-25 23:04:03 -05:00

43 lines
894 B
C#

using System;
using System.Collections.Generic;
public interface IAPInterface
{
event Action<bool> readyForTransactionsEvent;
event Action<string> purchaseSucceededEvent;
event Action<string> purchaseFailedEvent;
event Action<string> purchaseCancelledEvent;
event Action transactionsRestoredEvent;
event Action<string> transactionRestoreFailedEvent;
event Action<List<IAPProductInfo>> productListReceivedEvent;
event Action<string> productListRequestFailedEvent;
event Action<IapManager.CodeRedeemError> codeRedeemFailedEvent;
event Action<bool> codeVerificationEvent;
event Func<string, bool> deliverItem;
bool UserInitiatedRestore { get; }
void init();
void deInit();
bool readyForTransactions();
void purchaseProduct(string productId);
void restoreTransactions();
void fetchAvailableProducts(string[] requestedProductIds);
void OnLevelWasLoaded();
}