C# Класс PhotoSharingApp.Universal.Facades.LicensingFacade

Encapsulates In-app purchases.
Наследование: ILicensingFacade
Показать файл Открыть проект

Открытые методы

Метод Описание
LicensingFacade ( IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler ) : System
PurchaseGold ( string productId ) : System.Threading.Tasks.Task

Purchases Gold with the given productId.

Please see InAppPurchases for available IAPs.

Приватные методы

Метод Описание
DoFulfillment ( ) : System.Threading.Tasks.Task

Does fulfillment of all available products.

Fulfillment consists of two steps: 1. Notifying PhotoSharingApp servers of purchased IAP. 2. In case of a consumable, we want to fulfill that IAP in the store so that users are able to re-purchase.

TryFulfillGold ( ProductLicense productLicense ) : System.Threading.Tasks.Task

Tries to fulfill a Gold IAP with the given amount.

Описание методов

LicensingFacade() публичный Метод

public LicensingFacade ( IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler ) : System
photoService IPhotoService
authEnforcementHandler IAuthEnforcementHandler
Результат System

PurchaseGold() публичный Метод

Purchases Gold with the given productId.
Please see InAppPurchases for available IAPs.
Thrown when an error occurs during purchase.
public PurchaseGold ( string productId ) : System.Threading.Tasks.Task
productId string The productId to purchase.
Результат System.Threading.Tasks.Task