mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-31 17:37:41 +00:00
15 lines
425 B
Dart
15 lines
425 B
Dart
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),
|
|
SyncMode("Unobtrusive", SyncType.unobtrusive, Duration(hours: 12)),
|
|
SyncMode("Aggressive", SyncType.aggressive, Duration(hours: 3)),
|
|
];
|
|
}
|