cake_wallet/lib/view_model/settings/sync_mode.dart

16 lines
428 B
Dart
Raw Normal View History

enum SyncType { disabled, unobtrusive, aggressive }
class SyncMode {
SyncMode(this.name, this.type, this.frequency);
final String name;
final SyncType type;
final Duration frequency;
static final all = [
SyncMode("Disabled", SyncType.disabled, Duration.zero),
2024-02-11 00:04:46 +00:00
SyncMode("Unobtrusive", SyncType.unobtrusive, Duration(hours: 12)),
2024-07-26 15:45:10 +00:00
SyncMode("Aggressive", SyncType.aggressive, Duration(minutes: 15)),
];
}