public class FlashSwapPreviewRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_BUY_AMOUNT |
static String |
SERIALIZED_NAME_BUY_CURRENCY |
static String |
SERIALIZED_NAME_SELL_AMOUNT |
static String |
SERIALIZED_NAME_SELL_CURRENCY |
| Constructor and Description |
|---|
FlashSwapPreviewRequest() |
| Modifier and Type | Method and Description |
|---|---|
FlashSwapPreviewRequest |
buyAmount(String buyAmount) |
FlashSwapPreviewRequest |
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 |
getSellAmount()
Amount to sell.
|
String |
getSellCurrency()
Currency to sell which can be retrieved from supported currency list API `GET /flash_swap/currencies`
|
int |
hashCode() |
FlashSwapPreviewRequest |
sellAmount(String sellAmount) |
FlashSwapPreviewRequest |
sellCurrency(String sellCurrency) |
void |
setBuyAmount(String buyAmount) |
void |
setBuyCurrency(String buyCurrency) |
void |
setSellAmount(String sellAmount) |
void |
setSellCurrency(String sellCurrency) |
String |
toString() |
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 FlashSwapPreviewRequest sellCurrency(String sellCurrency)
public String getSellCurrency()
public void setSellCurrency(String sellCurrency)
public FlashSwapPreviewRequest sellAmount(String sellAmount)
@Nullable public String getSellAmount()
public void setSellAmount(String sellAmount)
public FlashSwapPreviewRequest buyCurrency(String buyCurrency)
public String getBuyCurrency()
public void setBuyCurrency(String buyCurrency)
public FlashSwapPreviewRequest buyAmount(String buyAmount)
@Nullable public String getBuyAmount()
public void setBuyAmount(String buyAmount)
Copyright © 2023. All rights reserved.