2022-10-04 17:06:14 +00:00
|
|
|
import 'package:stackwallet/models/exchange/response_objects/fixed_rate_market.dart';
|
2023-02-05 20:32:39 +00:00
|
|
|
import 'package:stackwallet/models/isar/exchange_cache/currency.dart';
|
|
|
|
import 'package:stackwallet/models/isar/exchange_cache/pair.dart';
|
2022-10-04 17:06:14 +00:00
|
|
|
|
|
|
|
class CNAvailableCurrencies {
|
|
|
|
final List<Currency> currencies = [];
|
|
|
|
final List<Pair> pairs = [];
|
|
|
|
final List<FixedRateMarket> markets = [];
|
|
|
|
|
|
|
|
void updateCurrencies(List<Currency> newCurrencies) {
|
|
|
|
currencies.clear();
|
|
|
|
currencies.addAll(newCurrencies);
|
|
|
|
}
|
|
|
|
|
|
|
|
void updateFloatingPairs(List<Pair> newPairs) {
|
|
|
|
pairs.clear();
|
|
|
|
pairs.addAll(newPairs);
|
|
|
|
}
|
|
|
|
|
|
|
|
void updateMarkets(List<FixedRateMarket> newMarkets) {
|
|
|
|
markets.clear();
|
|
|
|
markets.addAll(newMarkets);
|
|
|
|
}
|
|
|
|
}
|