public class EconomyResponse extends Object
EconomyResponse.ResponseType
indicating whether the plugin currently being used for Economy actually allows
the method, or if the operation was a success or failure.Modifier and Type | Class and Description |
---|---|
static class |
EconomyResponse.ResponseType
Enum for types of Responses indicating the status of a method call.
|
Modifier and Type | Field and Description |
---|---|
double |
amount
Amount modified by calling method
|
double |
balance
New balance of account
|
String |
errorMessage
Error message if the variable 'type' is ResponseType.FAILURE
|
EconomyResponse.ResponseType |
type
Success or failure of call.
|
Constructor and Description |
---|
EconomyResponse(double amount,
double balance,
EconomyResponse.ResponseType type,
String errorMessage)
Constructor for EconomyResponse
|
public final double amount
public final double balance
public final EconomyResponse.ResponseType type
public final String errorMessage
public EconomyResponse(double amount, double balance, EconomyResponse.ResponseType type, String errorMessage)
amount
- Amount modified during operationbalance
- New balance of accounttype
- Success or failure type of the operationerrorMessage
- Error message if necessary (commonly null)public boolean transactionSuccess()
Milkbowl, 2014