public class ClaimOfferAtomV0 extends java.lang.Object implements XdrElement
struct ClaimOfferAtomV0
{
// emitted to identify the offer
uint256 sellerEd25519; // 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 |
ClaimOfferAtomV0.ClaimOfferAtomV0Builder |
| Constructor and Description |
|---|
ClaimOfferAtomV0() |
ClaimOfferAtomV0(Uint256 sellerEd25519,
Int64 offerID,
Asset assetSold,
Int64 amountSold,
Asset assetBought,
Int64 amountBought) |
| Modifier and Type | Method and Description |
|---|---|
static ClaimOfferAtomV0.ClaimOfferAtomV0Builder |
builder() |
static ClaimOfferAtomV0 |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ClaimOfferAtomV0 |
fromXdrBase64(java.lang.String xdr) |
static ClaimOfferAtomV0 |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmountBought() |
Int64 |
getAmountSold() |
Asset |
getAssetBought() |
Asset |
getAssetSold() |
Int64 |
getOfferID() |
Uint256 |
getSellerEd25519() |
int |
hashCode() |
void |
setAmountBought(Int64 amountBought) |
void |
setAmountSold(Int64 amountSold) |
void |
setAssetBought(Asset assetBought) |
void |
setAssetSold(Asset assetSold) |
void |
setOfferID(Int64 offerID) |
void |
setSellerEd25519(Uint256 sellerEd25519) |
ClaimOfferAtomV0.ClaimOfferAtomV0Builder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static ClaimOfferAtomV0 decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static ClaimOfferAtomV0 fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static ClaimOfferAtomV0 fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static ClaimOfferAtomV0.ClaimOfferAtomV0Builder builder()
public ClaimOfferAtomV0.ClaimOfferAtomV0Builder toBuilder()
public Uint256 getSellerEd25519()
public Int64 getOfferID()
public Asset getAssetSold()
public Int64 getAmountSold()
public Asset getAssetBought()
public Int64 getAmountBought()
public void setSellerEd25519(Uint256 sellerEd25519)
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