public class TradeInput
extends java.lang.Object
CreateTrade
Constructor and Description |
---|
TradeInput() |
Modifier and Type | Method and Description |
---|---|
TradeInput |
assetId(java.lang.String assetId)
Sets the asset ID to trade.
|
TradeInput |
assetIndex(java.lang.String assetIndex)
Sets the index for non-fungible assets.
|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
TradeInput |
value(java.lang.String value)
Sets the number of assets to trade.
|
public TradeInput assetId(java.lang.String assetId)
If null or omitted then ENJ will be traded instead.
assetId
- the asset IDpublic TradeInput assetIndex(java.lang.String assetIndex)
assetIndex
- the indexpublic TradeInput value(java.lang.String value)
If trading ENJ, the value is the amount to send in Wei (10^18 e.g. 1 ENJ = 1000000000000000000).
value
- the amountpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object