public enum LiquidityPoolDepositResultCode extends java.lang.Enum<LiquidityPoolDepositResultCode> implements XdrElement
enum LiquidityPoolDepositResultCode
{
// codes considered as "success" for the operation
LIQUIDITY_POOL_DEPOSIT_SUCCESS = 0,
// codes considered as "failure" for the operation
LIQUIDITY_POOL_DEPOSIT_MALFORMED = -1, // bad input
LIQUIDITY_POOL_DEPOSIT_NO_TRUST = -2, // no trust line for one of the
// assets
LIQUIDITY_POOL_DEPOSIT_NOT_AUTHORIZED = -3, // not authorized for one of the
// assets
LIQUIDITY_POOL_DEPOSIT_UNDERFUNDED = -4, // not enough balance for one of
// the assets
LIQUIDITY_POOL_DEPOSIT_LINE_FULL = -5, // pool share trust line doesn't
// have sufficient limit
LIQUIDITY_POOL_DEPOSIT_BAD_PRICE = -6, // deposit price outside bounds
LIQUIDITY_POOL_DEPOSIT_POOL_FULL = -7 // pool reserves are full
};
| Modifier and Type | Method and Description |
|---|---|
static LiquidityPoolDepositResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static LiquidityPoolDepositResultCode |
fromXdrBase64(java.lang.String xdr) |
static LiquidityPoolDepositResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static LiquidityPoolDepositResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LiquidityPoolDepositResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOftoXdrBase64, toXdrByteArraypublic static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_SUCCESS
public static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_MALFORMED
public static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_NO_TRUST
public static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_NOT_AUTHORIZED
public static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_UNDERFUNDED
public static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_LINE_FULL
public static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_BAD_PRICE
public static final LiquidityPoolDepositResultCode LIQUIDITY_POOL_DEPOSIT_POOL_FULL
public static LiquidityPoolDepositResultCode[] values()
for (LiquidityPoolDepositResultCode c : LiquidityPoolDepositResultCode.values()) System.out.println(c);
public static LiquidityPoolDepositResultCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public static LiquidityPoolDepositResultCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static LiquidityPoolDepositResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static LiquidityPoolDepositResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException