add syncing waiting / error / failed indicator
This commit is contained in:
parent
a5fef138dd
commit
07700c1eff
6 changed files with 186 additions and 75 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/epoch_date_time_converter.dart";
|
||||
|
||||
part "sync_status.freezed.dart";
|
||||
part "sync_status.g.dart";
|
||||
|
|
@ -7,8 +8,9 @@ part "sync_status.g.dart";
|
|||
@JsonSerializable()
|
||||
class const SyncStatus({
|
||||
required final SyncStatusType type,
|
||||
required final String? error,
|
||||
required final int errorCount,
|
||||
final String? error,
|
||||
@EpochDateTimeConverter() final DateTime? lastSync,
|
||||
}) with _$SyncStatus {
|
||||
Map<String, Object?> toJson() => _$SyncStatusToJson(this);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue