public class ManageSellOfferOp extends java.lang.Object implements XdrElement
struct ManageSellOfferOp { Asset selling; Asset buying; int64 amount; // amount being sold. if set to 0, delete the offer Price price; // price of thing being sold in terms of what you are buying // 0=create a new offer, otherwise edit an existing offer int64 offerID; };
Modifier and Type | Class and Description |
---|---|
static class |
ManageSellOfferOp.ManageSellOfferOpBuilder |
Constructor and Description |
---|
ManageSellOfferOp() |
ManageSellOfferOp(Asset selling,
Asset buying,
Int64 amount,
Price price,
Int64 offerID) |
Modifier and Type | Method and Description |
---|---|
static ManageSellOfferOp.ManageSellOfferOpBuilder |
builder() |
static ManageSellOfferOp |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ManageSellOfferOp |
fromXdrBase64(java.lang.String xdr) |
static ManageSellOfferOp |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmount() |
Asset |
getBuying() |
Int64 |
getOfferID() |
Price |
getPrice() |
Asset |
getSelling() |
int |
hashCode() |
void |
setAmount(Int64 amount) |
void |
setBuying(Asset buying) |
void |
setOfferID(Int64 offerID) |
void |
setPrice(Price price) |
void |
setSelling(Asset selling) |
ManageSellOfferOp.ManageSellOfferOpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ManageSellOfferOp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ManageSellOfferOp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ManageSellOfferOp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ManageSellOfferOp.ManageSellOfferOpBuilder builder()
public ManageSellOfferOp.ManageSellOfferOpBuilder toBuilder()
public Asset getSelling()
public Asset getBuying()
public Int64 getAmount()
public Price getPrice()
public Int64 getOfferID()
public void setSelling(Asset selling)
public void setBuying(Asset buying)
public void setAmount(Int64 amount)
public void setPrice(Price price)
public void setOfferID(Int64 offerID)
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