public class ManageBuyOfferResult extends java.lang.Object implements XdrElement
union ManageBuyOfferResult switch (ManageBuyOfferResultCode code) { case MANAGE_BUY_OFFER_SUCCESS: ManageOfferSuccessResult success; case MANAGE_BUY_OFFER_MALFORMED: case MANAGE_BUY_OFFER_SELL_NO_TRUST: case MANAGE_BUY_OFFER_BUY_NO_TRUST: case MANAGE_BUY_OFFER_SELL_NOT_AUTHORIZED: case MANAGE_BUY_OFFER_BUY_NOT_AUTHORIZED: case MANAGE_BUY_OFFER_LINE_FULL: case MANAGE_BUY_OFFER_UNDERFUNDED: case MANAGE_BUY_OFFER_CROSS_SELF: case MANAGE_BUY_OFFER_SELL_NO_ISSUER: case MANAGE_BUY_OFFER_BUY_NO_ISSUER: case MANAGE_BUY_OFFER_NOT_FOUND: case MANAGE_BUY_OFFER_LOW_RESERVE: void; };
Modifier and Type | Class and Description |
---|---|
static class |
ManageBuyOfferResult.ManageBuyOfferResultBuilder |
Constructor and Description |
---|
ManageBuyOfferResult() |
ManageBuyOfferResult(ManageBuyOfferResultCode discriminant,
ManageOfferSuccessResult success) |
Modifier and Type | Method and Description |
---|---|
static ManageBuyOfferResult.ManageBuyOfferResultBuilder |
builder() |
static ManageBuyOfferResult |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ManageBuyOfferResult |
fromXdrBase64(java.lang.String xdr) |
static ManageBuyOfferResult |
fromXdrByteArray(byte[] xdr) |
ManageBuyOfferResultCode |
getDiscriminant() |
ManageOfferSuccessResult |
getSuccess() |
int |
hashCode() |
void |
setDiscriminant(ManageBuyOfferResultCode discriminant) |
void |
setSuccess(ManageOfferSuccessResult success) |
ManageBuyOfferResult.ManageBuyOfferResultBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public ManageBuyOfferResult()
public ManageBuyOfferResult(ManageBuyOfferResultCode discriminant, ManageOfferSuccessResult success)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ManageBuyOfferResult decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ManageBuyOfferResult fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ManageBuyOfferResult fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ManageBuyOfferResult.ManageBuyOfferResultBuilder builder()
public ManageBuyOfferResult.ManageBuyOfferResultBuilder toBuilder()
public ManageBuyOfferResultCode getDiscriminant()
public ManageOfferSuccessResult getSuccess()
public void setDiscriminant(ManageBuyOfferResultCode discriminant)
public void setSuccess(ManageOfferSuccessResult success)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object