public class PathPaymentStrictSendResult extends java.lang.Object implements XdrElement
union PathPaymentStrictSendResult switch (PathPaymentStrictSendResultCode code)
{
case PATH_PAYMENT_STRICT_SEND_SUCCESS:
struct
{
ClaimAtom offers<>;
SimplePaymentResult last;
} success;
case PATH_PAYMENT_STRICT_SEND_MALFORMED:
case PATH_PAYMENT_STRICT_SEND_UNDERFUNDED:
case PATH_PAYMENT_STRICT_SEND_SRC_NO_TRUST:
case PATH_PAYMENT_STRICT_SEND_SRC_NOT_AUTHORIZED:
case PATH_PAYMENT_STRICT_SEND_NO_DESTINATION:
case PATH_PAYMENT_STRICT_SEND_NO_TRUST:
case PATH_PAYMENT_STRICT_SEND_NOT_AUTHORIZED:
case PATH_PAYMENT_STRICT_SEND_LINE_FULL:
void;
case PATH_PAYMENT_STRICT_SEND_NO_ISSUER:
Asset noIssuer; // the asset that caused the error
case PATH_PAYMENT_STRICT_SEND_TOO_FEW_OFFERS:
case PATH_PAYMENT_STRICT_SEND_OFFER_CROSS_SELF:
case PATH_PAYMENT_STRICT_SEND_UNDER_DESTMIN:
void;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
PathPaymentStrictSendResult.PathPaymentStrictSendResultBuilder |
static class |
PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess
PathPaymentStrictSendResultSuccess's original definition in the XDR file is:
|
| Constructor and Description |
|---|
PathPaymentStrictSendResult() |
PathPaymentStrictSendResult(PathPaymentStrictSendResultCode discriminant,
PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success,
Asset noIssuer) |
| Modifier and Type | Method and Description |
|---|---|
static PathPaymentStrictSendResult.PathPaymentStrictSendResultBuilder |
builder() |
static PathPaymentStrictSendResult |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static PathPaymentStrictSendResult |
fromXdrBase64(java.lang.String xdr) |
static PathPaymentStrictSendResult |
fromXdrByteArray(byte[] xdr) |
PathPaymentStrictSendResultCode |
getDiscriminant() |
Asset |
getNoIssuer() |
PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess |
getSuccess() |
int |
hashCode() |
void |
setDiscriminant(PathPaymentStrictSendResultCode discriminant) |
void |
setNoIssuer(Asset noIssuer) |
void |
setSuccess(PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success) |
PathPaymentStrictSendResult.PathPaymentStrictSendResultBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic PathPaymentStrictSendResult()
public PathPaymentStrictSendResult(PathPaymentStrictSendResultCode discriminant, PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success, Asset noIssuer)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static PathPaymentStrictSendResult decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictSendResult fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictSendResult fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictSendResult.PathPaymentStrictSendResultBuilder builder()
public PathPaymentStrictSendResult.PathPaymentStrictSendResultBuilder toBuilder()
public PathPaymentStrictSendResultCode getDiscriminant()
public PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess getSuccess()
public Asset getNoIssuer()
public void setDiscriminant(PathPaymentStrictSendResultCode discriminant)
public void setSuccess(PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success)
public void setNoIssuer(Asset noIssuer)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object