public class FlashSwapOrderPreview extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_BUY_AMOUNT |
static String |
SERIALIZED_NAME_BUY_CURRENCY |
static String |
SERIALIZED_NAME_PREVIEW_ID |
static String |
SERIALIZED_NAME_PRICE |
static String |
SERIALIZED_NAME_SELL_AMOUNT |
static String |
SERIALIZED_NAME_SELL_CURRENCY |
| Constructor and Description |
|---|
FlashSwapOrderPreview() |
| Modifier and Type | Method and Description |
|---|---|
FlashSwapOrderPreview |
buyAmount(String buyAmount) |
FlashSwapOrderPreview |
buyCurrency(String buyCurrency) |
boolean |
equals(Object o) |
String |
getBuyAmount()
Amount to buy
|
String |
getBuyCurrency()
Currency to buy which can be retrieved from supported currency list API `GET /flash_swap/currencies`
|
String |
getPreviewId()
Preview result ID
|
String |
getPrice()
Price
|
String |
getSellAmount()
Amount to sell
|
String |
getSellCurrency()
Currency to sell which can be retrieved from supported currency list API `GET /flash_swap/currencies`
|
int |
hashCode() |
FlashSwapOrderPreview |
previewId(String previewId) |
FlashSwapOrderPreview |
price(String price) |
FlashSwapOrderPreview |
sellAmount(String sellAmount) |
FlashSwapOrderPreview |
sellCurrency(String sellCurrency) |
void |
setBuyAmount(String buyAmount) |
void |
setBuyCurrency(String buyCurrency) |
void |
setPreviewId(String previewId) |
void |
setPrice(String price) |
void |
setSellAmount(String sellAmount) |
void |
setSellCurrency(String sellCurrency) |
String |
toString() |
public static final String SERIALIZED_NAME_PREVIEW_ID
public static final String SERIALIZED_NAME_SELL_CURRENCY
public static final String SERIALIZED_NAME_SELL_AMOUNT
public static final String SERIALIZED_NAME_BUY_CURRENCY
public static final String SERIALIZED_NAME_BUY_AMOUNT
public static final String SERIALIZED_NAME_PRICE
public FlashSwapOrderPreview previewId(String previewId)
public void setPreviewId(String previewId)
public FlashSwapOrderPreview sellCurrency(String sellCurrency)
@Nullable public String getSellCurrency()
public void setSellCurrency(String sellCurrency)
public FlashSwapOrderPreview sellAmount(String sellAmount)
public void setSellAmount(String sellAmount)
public FlashSwapOrderPreview buyCurrency(String buyCurrency)
@Nullable public String getBuyCurrency()
public void setBuyCurrency(String buyCurrency)
public FlashSwapOrderPreview buyAmount(String buyAmount)
public void setBuyAmount(String buyAmount)
public FlashSwapOrderPreview price(String price)
public void setPrice(String price)
Copyright © 2023. All rights reserved.