mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-06 04:17:42 +00:00
30 lines
912 B
Dart
30 lines
912 B
Dart
import 'package:stackwallet/models/exchange/response_objects/currency.dart';
|
|
import 'package:stackwallet/models/exchange/response_objects/pair.dart';
|
|
|
|
class SPAvailableCurrencies {
|
|
final List<Currency> floatingRateCurrencies = [];
|
|
final List<Currency> fixedRateCurrencies = [];
|
|
|
|
final List<Pair> floatingRatePairs = [];
|
|
final List<Pair> fixedRatePairs = [];
|
|
|
|
void updateFloatingCurrencies(List<Currency> newCurrencies) {
|
|
floatingRateCurrencies.clear();
|
|
floatingRateCurrencies.addAll(newCurrencies);
|
|
}
|
|
|
|
void updateFixedCurrencies(List<Currency> newCurrencies) {
|
|
fixedRateCurrencies.clear();
|
|
fixedRateCurrencies.addAll(newCurrencies);
|
|
}
|
|
|
|
void updateFloatingPairs(List<Pair> newPairs) {
|
|
floatingRatePairs.clear();
|
|
floatingRatePairs.addAll(newPairs);
|
|
}
|
|
|
|
void updateFixedPairs(List<Pair> newPairs) {
|
|
fixedRatePairs.clear();
|
|
fixedRatePairs.addAll(newPairs);
|
|
}
|
|
}
|