mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-05 18:39:25 +00:00
17 lines
572 B
Dart
17 lines
572 B
Dart
enum SyncType { minutes, oneHour, threeHours, sixHours, twelveHours }
|
|
|
|
class SyncMode {
|
|
SyncMode(this.name, this.type, this.frequency);
|
|
|
|
final String name;
|
|
final SyncType type;
|
|
final Duration frequency;
|
|
|
|
static final all = [
|
|
SyncMode("15 Minutes", SyncType.minutes, Duration(minutes: 15)),
|
|
SyncMode("1 Hour", SyncType.oneHour, Duration(hours: 1)),
|
|
SyncMode("3 Hours", SyncType.threeHours, Duration(hours: 3)),
|
|
SyncMode("6 Hours", SyncType.sixHours, Duration(hours: 6)),
|
|
SyncMode("12 Hours", SyncType.twelveHours, Duration(hours: 12)),
|
|
];
|
|
}
|