Atavism Version 2018.1AGIS API

atavism.server.plugins
Class BillingClient

java.lang.Object
  extended by atavism.server.plugins.BillingClient

public class BillingClient
extends java.lang.Object


Field Summary
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 Summary
BillingClient()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static Namespace NAMESPACE

MSG_TYPE_DECREMENT_TOKEN_BALANCE

public static final MessageType MSG_TYPE_DECREMENT_TOKEN_BALANCE

MSG_TYPE_GET_TOKEN_BALANCE

public static final MessageType MSG_TYPE_GET_TOKEN_BALANCE

MSG_TYPE_BILLING_BALANCE

public static final MessageType MSG_TYPE_BILLING_BALANCE

MSG_GET_PLAYER

public static final MessageType MSG_GET_PLAYER
Constructor Detail

BillingClient

public BillingClient()
Method Detail

decrementTokenBalance

public static java.lang.Float decrementTokenBalance(OID playerOid,
                                                    java.lang.Float amount)
Sends an update to modify the player's token balance.

Parameters:
playerOid - the oid of the player whose balance should be modified
amount - the amount to modify the balance. This should be a negative number.
Returns:
the updated balance or null if an error has occurred

getTokenBalance

public static java.lang.Float getTokenBalance(OID playerOid)
Retrieves the player's token balance. This value is world specific, not player character specific

Parameters:
playerOid -
Returns:
the player's current token balance


Copyright © 2018 Dragonsan Studios Sp. z o.o.