Billing.PurchaseDatabase.InsertOrder C# (CSharp) Метод

InsertOrder() приватный Метод

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.
private InsertOrder ( string orderId, string productId, Consts state, long purchaseTime, string developerPayload ) : void
orderId string the order ID (matches the value in the product list)
productId string the product ID (sku)
state Consts 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
        }