C# Класс Billing.PurchaseDatabase

An example database that records the state of each purchase. You should use an obfuscator before storing any information to persistent storage. The obfuscator should use a key that is specific to the device and/or user. Otherwise an attacker could copy a database full of valid purchases and distribute it to others.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Close ( ) : void
PurchaseDatabase ( Android.Content.Context context ) : System.Runtime.CompilerServices
QueryAllPurchasedItems ( ) : ICursor

Returns a cursor that can be used to read all the rows and columns of the "purchased items" table.

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

Метод Описание
InsertOrder ( string orderId, string productId, Consts state, long purchaseTime, string developerPayload ) : void

Inserts a purchased product into the database. There may be multiple rows in the table for the same product if it was purchased multiple times or if it was refunded.

UpdatePurchase ( string orderId, string productId, Consts purchaseState, long purchaseTime, string developerPayload ) : int
UpdatePurchasedItem ( string productId, int quantity ) : void

Updates the quantity of the given product to the given value. If the given value is zero, then the product is removed from the table.

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

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

public Close ( ) : void
Результат void

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

public PurchaseDatabase ( Android.Content.Context context ) : System.Runtime.CompilerServices
context Android.Content.Context
Результат System.Runtime.CompilerServices

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

Returns a cursor that can be used to read all the rows and columns of the "purchased items" table.
public QueryAllPurchasedItems ( ) : ICursor
Результат ICursor