Package org.stellar.sdk.xdr
Class PathPaymentStrictSendResult
java.lang.Object
org.stellar.sdk.xdr.PathPaymentStrictSendResult
PathPaymentStrictSendResult's original definition in the XDR file is:
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;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classPathPaymentStrictSendResultSuccess's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionPathPaymentStrictSendResult(PathPaymentStrictSendResultCode discriminant, PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success, Asset noIssuer) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PathPaymentStrictSendResultdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PathPaymentStrictSendResultfromXdrBase64(String xdr) static PathPaymentStrictSendResultfromXdrByteArray(byte[] xdr) inthashCode()voidsetDiscriminant(PathPaymentStrictSendResultCode discriminant) voidsetNoIssuer(Asset noIssuer) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
PathPaymentStrictSendResult
public PathPaymentStrictSendResult() -
PathPaymentStrictSendResult
public PathPaymentStrictSendResult(PathPaymentStrictSendResultCode discriminant, PathPaymentStrictSendResult.PathPaymentStrictSendResultSuccess success, Asset noIssuer)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getSuccess
-
getNoIssuer
-
setDiscriminant
-
setSuccess
-
setNoIssuer
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-