public class TransactionEvent
extends java.lang.Object
Constructor and Description |
---|
TransactionEvent(java.lang.String fromAccountName,
long fromAmount,
java.lang.String toAccountName,
long toAmount)
Convenience constructor.
|
TransactionEvent(java.lang.String fromAccountName,
long fromAmount,
java.lang.String toAccountName,
long toAmount,
java.lang.String itemID,
int quantity) |
public TransactionEvent(java.lang.String fromAccountName, long fromAmount, java.lang.String toAccountName, long toAmount)
fromAccountName
- Name of the account being chargedfromAmount
- How much to take from that accounttoAccountName
- Name of the account being creditedtoAmount
- How much to credit that account (should be the same as fromAmount in most cases)public TransactionEvent(java.lang.String fromAccountName, long fromAmount, java.lang.String toAccountName, long toAmount, java.lang.String itemID, int quantity)
fromAccountName
- Name of the account being chargedfromAmount
- How much to take from that accounttoAccountName
- Name of the account being creditedtoAmount
- How much to credit that account (should be the same as fromAmount in most cases)itemID
- ID of the item being sold. It is assumed that the item is going TO the player represented by the fromAccountquantity
- how many of the item is being sold