.. This file was automatically generated by RstDoclet. Do not touch. .. _Transactions: Transactions ============ This is a convenient class to be used with ``Tracker.trackGameTransaction()``. **Example** User buys a scratch using ten coins: .. code-block:: java Tracker.trackGameTransaction("Buy", "Scratch store", withTransactions("scratch", 1).and("coins", 10)); Public methods -------------- and(String item, int quantity, int balance) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Append a new transaction with the specified ``item``, ``quantity`` and ``balance`` ---------- and(String item, int value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Append a new transaction with the specified ``item`` and ``quantity`` .. seealso:: :doc:`Tracker`