|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.milkbowl.vault.economy.EconomyResponse
public class EconomyResponse
Nested Class Summary | |
---|---|
static class |
EconomyResponse.ResponseType
Enum for types of Responses indicating the status of a method call. |
Field Summary | |
---|---|
double |
amount
Amount modified by calling method |
double |
balance
New balance of account |
java.lang.String |
errorMessage
Error message if the variable 'type' is ResponseType.FAILURE |
EconomyResponse.ResponseType |
type
Success or failure of call. |
Constructor Summary | |
---|---|
EconomyResponse(double amount,
double balance,
EconomyResponse.ResponseType type,
java.lang.String errorMessage)
Constructor for EconomyResponse |
Method Summary | |
---|---|
boolean |
transactionSuccess()
Checks if an operation was successful |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final double amount
public final double balance
public final EconomyResponse.ResponseType type
public final java.lang.String errorMessage
Constructor Detail |
---|
public EconomyResponse(double amount, double balance, EconomyResponse.ResponseType type, java.lang.String errorMessage)
amount
- Amount modified during operationbalance
- New balance of accounttype
- Success or failure type of the operationerrorMessage
- Error message if necessary (commonly null)Method Detail |
---|
public boolean transactionSuccess()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |