Package tbdex.sdk.httpserver.models
Class Callbacks
-
- All Implemented Interfaces:
public final class CallbacksClass that houses all callback types for the TBDex HTTP server.
-
-
Field Summary
Fields Modifier and Type Field Description private SuspendFunction1<ApplicationCall, Object>getOfferingsprivate SuspendFunction1<ApplicationCall, Object>getBalancesprivate SuspendFunction2<ApplicationCall, GetExchangesFilter, Object>getExchangesprivate SuspendFunction1<ApplicationCall, Object>getExchangeprivate SuspendFunction4<ApplicationCall, Rfq, Offering, String, Unit>createExchangeprivate SuspendFunction2<ApplicationCall, Order, Unit>submitOrderprivate SuspendFunction2<ApplicationCall, Close, Unit>submitClose
-
Constructor Summary
Constructors Constructor Description Callbacks(SuspendFunction1<ApplicationCall, Object> getOfferings, SuspendFunction1<ApplicationCall, Object> getBalances, SuspendFunction2<ApplicationCall, GetExchangesFilter, Object> getExchanges, SuspendFunction1<ApplicationCall, Object> getExchange, SuspendFunction4<ApplicationCall, Rfq, Offering, String, Unit> createExchange, SuspendFunction2<ApplicationCall, Order, Unit> submitOrder, SuspendFunction2<ApplicationCall, Close, Unit> submitClose)
-
Method Summary
Modifier and Type Method Description final SuspendFunction1<ApplicationCall, Object>getGetOfferings()final UnitsetGetOfferings(SuspendFunction1<ApplicationCall, Object> getOfferings)final SuspendFunction1<ApplicationCall, Object>getGetBalances()final UnitsetGetBalances(SuspendFunction1<ApplicationCall, Object> getBalances)final SuspendFunction2<ApplicationCall, GetExchangesFilter, Object>getGetExchanges()final UnitsetGetExchanges(SuspendFunction2<ApplicationCall, GetExchangesFilter, Object> getExchanges)final SuspendFunction1<ApplicationCall, Object>getGetExchange()final UnitsetGetExchange(SuspendFunction1<ApplicationCall, Object> getExchange)final SuspendFunction4<ApplicationCall, Rfq, Offering, String, Unit>getCreateExchange()final UnitsetCreateExchange(SuspendFunction4<ApplicationCall, Rfq, Offering, String, Unit> createExchange)final SuspendFunction2<ApplicationCall, Order, Unit>getSubmitOrder()final UnitsetSubmitOrder(SuspendFunction2<ApplicationCall, Order, Unit> submitOrder)final SuspendFunction2<ApplicationCall, Close, Unit>getSubmitClose()final UnitsetSubmitClose(SuspendFunction2<ApplicationCall, Close, Unit> submitClose)-
-
Constructor Detail
-
Callbacks
Callbacks(SuspendFunction1<ApplicationCall, Object> getOfferings, SuspendFunction1<ApplicationCall, Object> getBalances, SuspendFunction2<ApplicationCall, GetExchangesFilter, Object> getExchanges, SuspendFunction1<ApplicationCall, Object> getExchange, SuspendFunction4<ApplicationCall, Rfq, Offering, String, Unit> createExchange, SuspendFunction2<ApplicationCall, Order, Unit> submitOrder, SuspendFunction2<ApplicationCall, Close, Unit> submitClose)
-
-
Method Detail
-
getGetOfferings
final SuspendFunction1<ApplicationCall, Object> getGetOfferings()
-
setGetOfferings
final Unit setGetOfferings(SuspendFunction1<ApplicationCall, Object> getOfferings)
-
getGetBalances
final SuspendFunction1<ApplicationCall, Object> getGetBalances()
-
setGetBalances
final Unit setGetBalances(SuspendFunction1<ApplicationCall, Object> getBalances)
-
getGetExchanges
final SuspendFunction2<ApplicationCall, GetExchangesFilter, Object> getGetExchanges()
-
setGetExchanges
final Unit setGetExchanges(SuspendFunction2<ApplicationCall, GetExchangesFilter, Object> getExchanges)
-
getGetExchange
final SuspendFunction1<ApplicationCall, Object> getGetExchange()
-
setGetExchange
final Unit setGetExchange(SuspendFunction1<ApplicationCall, Object> getExchange)
-
getCreateExchange
final SuspendFunction4<ApplicationCall, Rfq, Offering, String, Unit> getCreateExchange()
-
setCreateExchange
final Unit setCreateExchange(SuspendFunction4<ApplicationCall, Rfq, Offering, String, Unit> createExchange)
-
getSubmitOrder
final SuspendFunction2<ApplicationCall, Order, Unit> getSubmitOrder()
-
setSubmitOrder
final Unit setSubmitOrder(SuspendFunction2<ApplicationCall, Order, Unit> submitOrder)
-
getSubmitClose
final SuspendFunction2<ApplicationCall, Close, Unit> getSubmitClose()
-
setSubmitClose
final Unit setSubmitClose(SuspendFunction2<ApplicationCall, Close, Unit> submitClose)
-
-
-
-