public class PathPaymentStrictReceiveOp extends java.lang.Object implements XdrElement
struct PathPaymentStrictReceiveOp
{
Asset sendAsset; // asset we pay with
int64 sendMax; // the maximum amount of sendAsset to
// send (excluding fees).
// The operation will fail if can't be met
MuxedAccount destination; // recipient of the payment
Asset destAsset; // what they end up with
int64 destAmount; // amount they end up with
Asset path<5>; // additional hops it must go through to get there
};
| Modifier and Type | Class and Description |
|---|---|
static class |
PathPaymentStrictReceiveOp.PathPaymentStrictReceiveOpBuilder |
| Constructor and Description |
|---|
PathPaymentStrictReceiveOp() |
PathPaymentStrictReceiveOp(Asset sendAsset,
Int64 sendMax,
MuxedAccount destination,
Asset destAsset,
Int64 destAmount,
Asset[] path) |
| Modifier and Type | Method and Description |
|---|---|
static PathPaymentStrictReceiveOp.PathPaymentStrictReceiveOpBuilder |
builder() |
static PathPaymentStrictReceiveOp |
decode(XdrDataInputStream stream) |
static PathPaymentStrictReceiveOp |
decode(XdrDataInputStream stream,
int maxDepth) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static PathPaymentStrictReceiveOp |
fromXdrBase64(java.lang.String xdr) |
static PathPaymentStrictReceiveOp |
fromXdrByteArray(byte[] xdr) |
Int64 |
getDestAmount() |
Asset |
getDestAsset() |
MuxedAccount |
getDestination() |
Asset[] |
getPath() |
Asset |
getSendAsset() |
Int64 |
getSendMax() |
int |
hashCode() |
void |
setDestAmount(Int64 destAmount) |
void |
setDestAsset(Asset destAsset) |
void |
setDestination(MuxedAccount destination) |
void |
setPath(Asset[] path) |
void |
setSendAsset(Asset sendAsset) |
void |
setSendMax(Int64 sendMax) |
PathPaymentStrictReceiveOp.PathPaymentStrictReceiveOpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static PathPaymentStrictReceiveOp decode(XdrDataInputStream stream, int maxDepth) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictReceiveOp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictReceiveOp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictReceiveOp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static PathPaymentStrictReceiveOp.PathPaymentStrictReceiveOpBuilder builder()
public PathPaymentStrictReceiveOp.PathPaymentStrictReceiveOpBuilder toBuilder()
public Asset getSendAsset()
public Int64 getSendMax()
public MuxedAccount getDestination()
public Asset getDestAsset()
public Int64 getDestAmount()
public Asset[] getPath()
public void setSendAsset(Asset sendAsset)
public void setSendMax(Int64 sendMax)
public void setDestination(MuxedAccount destination)
public void setDestAsset(Asset destAsset)
public void setDestAmount(Int64 destAmount)
public void setPath(Asset[] path)
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