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