-
public final class TradeViewModel extends ViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private MutableState<TradeView.ViewState>uiStateprivate MutableState<TradeView.QuoteModalViewState>uiModalStateprivate StringcurrentFiatCurrencyprivate StringcustomerGuidprivate ListPricesViewModellistPricesViewModelprivate PollinglistPricesPollingprivate MutableState<AssetBankModel>currentAssetprivate MutableState<AssetBankModel>currentPairAssetprivate PostQuoteBankModelpostQuoteBankModelprivate MutableState<Boolean>showModalDialogprivate QuoteBankModelquoteBankModelprivate PollingquotePollingprivate TradeBankModeltradeBankModelprivate MutableState<Boolean>showKYCWarningModal
-
Constructor Summary
Constructors Constructor Description TradeViewModel()
-
Method Summary
Modifier and Type Method Description final MutableState<TradeView.ViewState>getUiState()final UnitsetUiState(MutableState<TradeView.ViewState> uiState)final MutableState<TradeView.QuoteModalViewState>getUiModalState()final UnitsetUiModalState(MutableState<TradeView.QuoteModalViewState> uiModalState)final StringgetCurrentFiatCurrency()final UnitsetCurrentFiatCurrency(String currentFiatCurrency)final StringgetCustomerGuid()final UnitsetCustomerGuid(String customerGuid)final ListPricesViewModelgetListPricesViewModel()final UnitsetListPricesViewModel(ListPricesViewModel listPricesViewModel)final PollinggetListPricesPolling()final UnitsetListPricesPolling(Polling listPricesPolling)final MutableState<AssetBankModel>getCurrentAsset()final UnitsetCurrentAsset(MutableState<AssetBankModel> currentAsset)final MutableState<AssetBankModel>getCurrentPairAsset()final UnitsetCurrentPairAsset(MutableState<AssetBankModel> currentPairAsset)final PostQuoteBankModelgetPostQuoteBankModel()final UnitsetPostQuoteBankModel(PostQuoteBankModel postQuoteBankModel)final MutableState<Boolean>getShowModalDialog()final UnitsetShowModalDialog(MutableState<Boolean> showModalDialog)final QuoteBankModelgetQuoteBankModel()final UnitsetQuoteBankModel(QuoteBankModel quoteBankModel)final PollinggetQuotePolling()final UnitsetQuotePolling(Polling quotePolling)final TradeBankModelgetTradeBankModel()final UnitsetTradeBankModel(TradeBankModel tradeBankModel)final MutableState<Boolean>getShowKYCWarningModal()final UnitsetShowKYCWarningModal(MutableState<Boolean> showKYCWarningModal)final UnitsetDataProvider(ApiClient dataProvider)final UnitgetPricesList()final UnithandlePricesOnClick(AssetBankModel asset, AssetBankModel pairAsset)final UnitcreatePostQuote(MutableState<String> amountState, MutableState<AssetBankModel.Type> typeOfAmountState, PostQuoteBankModel.Side side, AssetBankModel asset, AssetBankModel pairAsset)final UnitcreateQuote()final UnitcreateTrade()final UnitmodalBeDismissed()-
-
Method Detail
-
getUiState
final MutableState<TradeView.ViewState> getUiState()
-
setUiState
final Unit setUiState(MutableState<TradeView.ViewState> uiState)
-
getUiModalState
final MutableState<TradeView.QuoteModalViewState> getUiModalState()
-
setUiModalState
final Unit setUiModalState(MutableState<TradeView.QuoteModalViewState> uiModalState)
-
getCurrentFiatCurrency
final String getCurrentFiatCurrency()
-
setCurrentFiatCurrency
final Unit setCurrentFiatCurrency(String currentFiatCurrency)
-
getCustomerGuid
final String getCustomerGuid()
-
setCustomerGuid
final Unit setCustomerGuid(String customerGuid)
-
getListPricesViewModel
final ListPricesViewModel getListPricesViewModel()
-
setListPricesViewModel
final Unit setListPricesViewModel(ListPricesViewModel listPricesViewModel)
-
getListPricesPolling
final Polling getListPricesPolling()
-
setListPricesPolling
final Unit setListPricesPolling(Polling listPricesPolling)
-
getCurrentAsset
final MutableState<AssetBankModel> getCurrentAsset()
-
setCurrentAsset
final Unit setCurrentAsset(MutableState<AssetBankModel> currentAsset)
-
getCurrentPairAsset
final MutableState<AssetBankModel> getCurrentPairAsset()
-
setCurrentPairAsset
final Unit setCurrentPairAsset(MutableState<AssetBankModel> currentPairAsset)
-
getPostQuoteBankModel
final PostQuoteBankModel getPostQuoteBankModel()
-
setPostQuoteBankModel
final Unit setPostQuoteBankModel(PostQuoteBankModel postQuoteBankModel)
-
getShowModalDialog
final MutableState<Boolean> getShowModalDialog()
-
setShowModalDialog
final Unit setShowModalDialog(MutableState<Boolean> showModalDialog)
-
getQuoteBankModel
final QuoteBankModel getQuoteBankModel()
-
setQuoteBankModel
final Unit setQuoteBankModel(QuoteBankModel quoteBankModel)
-
getQuotePolling
final Polling getQuotePolling()
-
setQuotePolling
final Unit setQuotePolling(Polling quotePolling)
-
getTradeBankModel
final TradeBankModel getTradeBankModel()
-
setTradeBankModel
final Unit setTradeBankModel(TradeBankModel tradeBankModel)
-
getShowKYCWarningModal
final MutableState<Boolean> getShowKYCWarningModal()
-
setShowKYCWarningModal
final Unit setShowKYCWarningModal(MutableState<Boolean> showKYCWarningModal)
-
setDataProvider
final Unit setDataProvider(ApiClient dataProvider)
-
getPricesList
final Unit getPricesList()
-
handlePricesOnClick
final Unit handlePricesOnClick(AssetBankModel asset, AssetBankModel pairAsset)
-
createPostQuote
final Unit createPostQuote(MutableState<String> amountState, MutableState<AssetBankModel.Type> typeOfAmountState, PostQuoteBankModel.Side side, AssetBankModel asset, AssetBankModel pairAsset)
-
createQuote
final Unit createQuote()
-
createTrade
final Unit createTrade()
-
modalBeDismissed
final Unit modalBeDismissed()
-
-
-
-