private InsertOrder ( string orderId, string productId, |
||
orderId | string | the order ID (matches the value in the product list) |
productId | string | the product ID (sku) |
state | the state of the purchase | |
purchaseTime | long | the purchase time (in milliseconds since the epoch) |
developerPayload | string | the developer provided "payload" associated with /// the order. |
리턴 | void |
private void InsertOrder(string orderId, string productId, Consts.PurchaseState state, long purchaseTime, string developerPayload)
{
ContentValues values = new ContentValues();
values.Put(HISTORY_ORDER_ID_COL, orderId);
values.Put(HISTORY_PRODUCT_ID_COL, productId);
values.Put(HISTORY_STATE_COL, (int)state);
values.Put(HISTORY_PURCHASE_TIME_COL, purchaseTime);
values.Put(HISTORY_DEVELOPER_PAYLOAD_COL, developerPayload);
mDb.Replace(PURCHASE_HISTORY_TABLE_NAME, null, values); // nullColumnHack
}