CurrencyService

@Service
open class CurrencyService

Constructors

Link copied to clipboard
@Autowired
constructor(@NotNull currencyRepository: @NotNull CurrencyRepository, @NotNull currencyHistoryRepository: @NotNull CurrencyHistoryRepository, @NotNull uniqueCurrencyHistoryRepository: @NotNull UniqueCurrencyHistoryRepository, @NotNull currencyEntityService: @NotNull CurrencyEntityService, @NotNull currencyHistoryEntityService: @NotNull CurrencyHistoryEntityService, @NotNull uniqueCurrencyEntityService: @NotNull UniqueCurrencyEntityService, @NotNull uniqueCurrencyHistoryEntityService: @NotNull UniqueCurrencyHistoryEntityService)

Functions

Link copied to clipboard
Link copied to clipboard
open fun existsInCurrencyTable(@NotNull currencyCode: @NotNull String): Boolean
Link copied to clipboard
Link copied to clipboard
open fun existsInUniqueCurrencyTable(@NotNull currencyCode: @NotNull String): Boolean
Link copied to clipboard
@NotNull
open fun getAllCurrencies(): @NotNull List<Currency>
Link copied to clipboard
Link copied to clipboard
open fun getCurrencyByCurrencyCode(currencyCode: String): Currency
Link copied to clipboard
open fun getCurrencyByName(currencyName: String): Currency
Link copied to clipboard
open fun getCurrencyHistory(currencyCode: String, hours: Int): List<TimeValueResponse>
@NotNull
open fun getCurrencyHistory(currencyCode: String, hours: Int, intervalSeconds: Int): @NotNull List<TimeValueResponse>
Link copied to clipboard
open fun getCurrencyName(withCode: Boolean, @NotNull currency: @NotNull Currency): String
Link copied to clipboard
@NotNull
open fun getCurrencyNames(withCode: Boolean): @NotNull List<String>
Link copied to clipboard
@Nullable
open fun getCurrencyPerformanceScore(@NotNull currency: @NotNull Currency): @Nullable Double
Link copied to clipboard
@NotNull
open fun getCurrencyValuesResponse(): @NotNull DisplayCurrencyListResponse
@NotNull
open fun getCurrencyValuesResponse(offset: Int): @NotNull DisplayCurrencyListResponse
Link copied to clipboard
@NotNull
open fun getDayPerformance(currencyCode: String): @NotNull PerformanceRating
Link copied to clipboard
@Nullable
open fun getFuzzyCurrencyHistory(@NotNull currencyCode: @NotNull String, @NotNull request: @NotNull FuzzyTimeValueRequest): @Nullable TimeValueResponse
Link copied to clipboard
@NotNull
open fun getPercentageDayPerformance(@NotNull currencyCode: @NotNull String): @NotNull String
Link copied to clipboard
@NotNull
open fun getTopCurrenciesByPerformance(topCount: Int): @NotNull List<String>
Link copied to clipboard
open fun getTopNonEncapsulatedCurrencies(offset: Int): List<Currency>
Link copied to clipboard
open fun getTopTenCurrencies(): List<Currency>
Link copied to clipboard
Link copied to clipboard
open fun saveAllCurrencies(@NotNull currencies: @NotNull List<Currency>)
Link copied to clipboard
open fun saveAllUniqueCurrencies(@NotNull uniqueCurrencies: @NotNull List<UniqueCurrency>)
Link copied to clipboard
open fun saveCurrency(@NotNull currency: @NotNull Currency)
Link copied to clipboard
open fun saveCurrencyIfNew(@NotNull currency: @NotNull Currency, @Nullable previousCurrency: @Nullable Currency, @Nullable updatedCurrency: @Nullable Currency)
Link copied to clipboard
open fun saveUniqueCurrency(@NotNull currency: @NotNull Currency)
Link copied to clipboard
open fun saveUniqueCurrencyIfNew(@NotNull currency: @NotNull Currency, previousCurrency: Currency, updatedCurrency: Currency)
Link copied to clipboard
open fun shouldSaveUniqueCurrency(@NotNull currency: @NotNull Currency, previousCurrency: Currency, updatedCurrency: Currency): Boolean
Link copied to clipboard
@Nullable
open fun toCurrencyValueResponse(@Nullable currency: @Nullable Currency): @Nullable DisplayCurrencyResponse