public class BillingClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MessageType |
MSG_GET_PLAYER |
static MessageType |
MSG_TYPE_BILLING_BALANCE |
static MessageType |
MSG_TYPE_DECREMENT_TOKEN_BALANCE |
static MessageType |
MSG_TYPE_GET_TOKEN_BALANCE |
static Namespace |
NAMESPACE |
Constructor and Description |
---|
BillingClient() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Float |
decrementTokenBalance(OID playerOid,
java.lang.Float amount)
Sends an update to modify the player's token balance.
|
static java.lang.Float |
getTokenBalance(OID playerOid)
Retrieves the player's token balance.
|
public static Namespace NAMESPACE
public static final MessageType MSG_TYPE_DECREMENT_TOKEN_BALANCE
public static final MessageType MSG_TYPE_GET_TOKEN_BALANCE
public static final MessageType MSG_TYPE_BILLING_BALANCE
public static final MessageType MSG_GET_PLAYER
public static java.lang.Float decrementTokenBalance(OID playerOid, java.lang.Float amount)
playerOid
- the oid of the player whose balance should be modifiedamount
- the amount to modify the balance. This should be a negative number.public static java.lang.Float getTokenBalance(OID playerOid)
playerOid
-