forked from SatoshiPortal/bullbitcoin-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackup_settings_snapshot.dart
More file actions
43 lines (37 loc) · 1.18 KB
/
Copy pathbackup_settings_snapshot.dart
File metadata and controls
43 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
enum WalletMetadataBackupNowStatus { saved, unchanged, notReady }
final class WalletMetadataBackupSettingsSnapshot {
final bool enabled;
final bool dirty;
final bool blocked;
final bool hasRemoteBackup;
final DateTime? lastVerifiedAt;
const WalletMetadataBackupSettingsSnapshot({
required this.enabled,
required this.dirty,
required this.blocked,
this.hasRemoteBackup = false,
this.lastVerifiedAt,
});
}
final class BackupSettingsSnapshot {
final bool isDefaultPhysicalBackupTested;
final DateTime? lastPhysicalBackup;
final bool isDefaultEncryptedBackupTested;
final DateTime? lastEncryptedBackup;
final WalletMetadataBackupSettingsSnapshot walletMetadata;
const BackupSettingsSnapshot({
required this.isDefaultPhysicalBackupTested,
required this.lastPhysicalBackup,
required this.isDefaultEncryptedBackupTested,
required this.lastEncryptedBackup,
required this.walletMetadata,
});
}
final class WalletMetadataBackupNowResult {
final WalletMetadataBackupNowStatus status;
final WalletMetadataBackupSettingsSnapshot settings;
const WalletMetadataBackupNowResult({
required this.status,
required this.settings,
});
}