public class ClaimOfferAtom extends java.lang.Object implements XdrElement
struct ClaimOfferAtom
{
// emitted to identify the offer
AccountID sellerID; // Account that owns the offer
int64 offerID;
// amount and asset taken from the owner
Asset assetSold;
int64 amountSold;
// amount and asset sent to the owner
Asset assetBought;
int64 amountBought;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
ClaimOfferAtom.ClaimOfferAtomBuilder |
| Constructor and Description |
|---|
ClaimOfferAtom() |
ClaimOfferAtom(AccountID sellerID,
Int64 offerID,
Asset assetSold,
Int64 amountSold,
Asset assetBought,
Int64 amountBought) |
| Modifier and Type | Method and Description |
|---|---|
static ClaimOfferAtom.ClaimOfferAtomBuilder |
builder() |
static ClaimOfferAtom |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ClaimOfferAtom |
fromXdrBase64(java.lang.String xdr) |
static ClaimOfferAtom |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmountBought() |
Int64 |
getAmountSold() |
Asset |
getAssetBought() |
Asset |
getAssetSold() |
Int64 |
getOfferID() |
AccountID |
getSellerID() |
int |
hashCode() |
void |
setAmountBought(Int64 amountBought) |
void |
setAmountSold(Int64 amountSold) |
void |
setAssetBought(Asset assetBought) |
void |
setAssetSold(Asset assetSold) |
void |
setOfferID(Int64 offerID) |
void |
setSellerID(AccountID sellerID) |
ClaimOfferAtom.ClaimOfferAtomBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static ClaimOfferAtom decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static ClaimOfferAtom fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static ClaimOfferAtom fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static ClaimOfferAtom.ClaimOfferAtomBuilder builder()
public ClaimOfferAtom.ClaimOfferAtomBuilder toBuilder()
public AccountID getSellerID()
public Int64 getOfferID()
public Asset getAssetSold()
public Int64 getAmountSold()
public Asset getAssetBought()
public Int64 getAmountBought()
public void setSellerID(AccountID sellerID)
public void setOfferID(Int64 offerID)
public void setAssetSold(Asset assetSold)
public void setAmountSold(Int64 amountSold)
public void setAssetBought(Asset assetBought)
public void setAmountBought(Int64 amountBought)
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