Class CassandreMapperImpl

    • Constructor Detail

      • CassandreMapperImpl

        public CassandreMapperImpl()
    • Method Detail

      • mapToCurrencyPairDTO

        public CurrencyPairDTO mapToCurrencyPairDTO​(org.knowm.xchange.currency.CurrencyPair source)
        Description copied from interface: CassandreMapper
        Map CurrencyPair to CurrencyPairDTO.
        Specified by:
        mapToCurrencyPairDTO in interface CassandreMapper
        Parameters:
        source - CurrencyPair
        Returns:
        CurrencyPairDTO
      • mapToCurrencyDTO

        public CurrencyDTO mapToCurrencyDTO​(org.knowm.xchange.currency.Currency source)
        Description copied from interface: CassandreMapper
        Map Currency to CurrencyDTO.
        Specified by:
        mapToCurrencyDTO in interface CassandreMapper
        Parameters:
        source - Currency
        Returns:
        CurrencyDTO
      • mapToUserDTO

        public UserDTO mapToUserDTO​(org.knowm.xchange.dto.account.AccountInfo source)
        Description copied from interface: CassandreMapper
        Map AccountInfo to AccountDTO.
        Specified by:
        mapToUserDTO in interface CassandreMapper
        Parameters:
        source - AccountInfo
        Returns:
        AccountDTO
      • mapToWalletDTO

        public AccountDTO mapToWalletDTO​(org.knowm.xchange.dto.account.Wallet source)
        Description copied from interface: CassandreMapper
        Map Wallet to WalletDTO.
        Specified by:
        mapToWalletDTO in interface CassandreMapper
        Parameters:
        source - Wallet
        Returns:
        WalletDTO
      • mapToBalanceDTO

        public BalanceDTO mapToBalanceDTO​(org.knowm.xchange.dto.account.Balance source)
        Description copied from interface: CassandreMapper
        Map Balance to BalanceDTO.
        Specified by:
        mapToBalanceDTO in interface CassandreMapper
        Parameters:
        source - Balance
        Returns:
        BalanceDTO
      • mapToTickerDTO

        public TickerDTO mapToTickerDTO​(org.knowm.xchange.dto.marketdata.Ticker source)
        Description copied from interface: CassandreMapper
        Map Ticker to TickerDTO.
        Specified by:
        mapToTickerDTO in interface CassandreMapper
        Parameters:
        source - Ticker
        Returns:
        TickerDTO
      • mapToOrderDTO

        public OrderDTO mapToOrderDTO​(org.knowm.xchange.dto.trade.LimitOrder source)
        Description copied from interface: CassandreMapper
        Map Order to OrderDTO.
        Specified by:
        mapToOrderDTO in interface CassandreMapper
        Parameters:
        source - LimitOrder
        Returns:
        OrderDTO
      • mapToTradeDTO

        public TradeDTO mapToTradeDTO​(org.knowm.xchange.dto.trade.UserTrade source)
        Description copied from interface: CassandreMapper
        Map UserTrade to TradeDTO.
        Specified by:
        mapToTradeDTO in interface CassandreMapper
        Parameters:
        source - UserTrade
        Returns:
        TradeDTO
      • mapToOrderTypeDTO

        public OrderTypeDTO mapToOrderTypeDTO​(org.knowm.xchange.dto.Order.OrderType source)
        Description copied from interface: CassandreMapper
        Map to OrderTypeDTO.
        Specified by:
        mapToOrderTypeDTO in interface CassandreMapper
        Parameters:
        source - XChange order type
        Returns:
        OrderTypeDTO
      • mapToOrderType

        public org.knowm.xchange.dto.Order.OrderType mapToOrderType​(OrderTypeDTO source)
        Description copied from interface: CassandreMapper
        Map to OrderTypeDTO.
        Specified by:
        mapToOrderType in interface CassandreMapper
        Parameters:
        source - order type
        Returns:
        OrderType
      • stringWalletMapToStringAccountDTOMap

        protected Map<String,​AccountDTO> stringWalletMapToStringAccountDTOMap​(Map<String,​org.knowm.xchange.dto.account.Wallet> map)
      • walletFeatureToAccountFeatureDTO

        protected AccountFeatureDTO walletFeatureToAccountFeatureDTO​(org.knowm.xchange.dto.account.Wallet.WalletFeature walletFeature)
      • walletFeatureSetToAccountFeatureDTOSet

        protected Set<AccountFeatureDTO> walletFeatureSetToAccountFeatureDTOSet​(Set<org.knowm.xchange.dto.account.Wallet.WalletFeature> set)
      • orderStatusToOrderStatusDTO

        protected OrderStatusDTO orderStatusToOrderStatusDTO​(org.knowm.xchange.dto.Order.OrderStatus orderStatus)