|
@@ -5,15 +5,18 @@ import 'package:flutter/material.dart';
|
|
@immutable
|
|
@immutable
|
|
class LocalAuthEntity {
|
|
class LocalAuthEntity {
|
|
final int generatedID;
|
|
final int generatedID;
|
|
|
|
+
|
|
// id can be null if a code has been scanned locally but it's yet to be
|
|
// id can be null if a code has been scanned locally but it's yet to be
|
|
// synced with the remote server.
|
|
// synced with the remote server.
|
|
final String? id;
|
|
final String? id;
|
|
final String encryptedData;
|
|
final String encryptedData;
|
|
final String header;
|
|
final String header;
|
|
|
|
+
|
|
// createdAt and updateAt will be equal to local time of creation or updation
|
|
// createdAt and updateAt will be equal to local time of creation or updation
|
|
// till remote sync is completed.
|
|
// till remote sync is completed.
|
|
final int createdAt;
|
|
final int createdAt;
|
|
final int updatedAt;
|
|
final int updatedAt;
|
|
|
|
+
|
|
// shouldSync indicates that the entry was locally created or updated. The
|
|
// shouldSync indicates that the entry was locally created or updated. The
|
|
// app should try to sync it to the server during next sync
|
|
// app should try to sync it to the server during next sync
|
|
final bool shouldSync;
|
|
final bool shouldSync;
|