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.
파일 보기 프로젝트 열기: MarkEaton1/Monodroid-InApp-Billing 1 사용 예제들

공개 메소드들

메소드 설명
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