cake_wallet/lib/view_model/settings/sync_mode.dart
Matthew Fosse 7c651d7fb1 ui updates
2024-12-18 16:20:13 -05:00

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)),
];
}