b3ce1f076c
TF-3881 Thread Detail Unsubscribe context menu TF-3881 Thread Detail Update date time format TF-3881 Thread Detail Update sender receiver spacing TF-3881 Thread Detail Add messageId and references to presentation email TF-3881 Thread Detail Filter created email on refresh TF-3881 Thread Detail Fix CI TF-3881 Thread Detail Fix previous action throws out of index TF-3881 Thread Detail Update sender receiver spacing TF-3881 Thread Detail Adjust email actions when expanded TF-3881 Thread Detail Adjust days ago received time TF-3881 Thread Detail Fix debouncer when update setting TF-3881 Thread Detail Adjust days ago received time TF-3881 Thread Detail Adjust email actions when expanded TF-3881 Thread Detail Hide next previous if not in range TF-3881 Thread Detail Arrange more action according to text direction TF-3881 Thread Detail Hide next previous if not in range TF-3881 Thread Detail Fix move email on tablet
135 lines
2.4 KiB
Dart
135 lines
2.4 KiB
Dart
|
|
import 'package:equatable/equatable.dart';
|
|
import 'package:hive_ce/hive.dart';
|
|
import 'package:tmail_ui_user/features/caching/utils/caching_constants.dart';
|
|
import 'package:tmail_ui_user/features/thread/data/model/email_address_hive_cache.dart';
|
|
|
|
part 'email_cache.g.dart';
|
|
|
|
@HiveType(typeId: CachingConstants.EMAIL_CACHE_IDENTIFY)
|
|
class EmailCache extends HiveObject with EquatableMixin {
|
|
|
|
@HiveField(0)
|
|
final String id;
|
|
|
|
@HiveField(1)
|
|
final Map<String, bool>? keywords;
|
|
|
|
@HiveField(2)
|
|
final int? size;
|
|
|
|
@HiveField(3)
|
|
final DateTime? receivedAt;
|
|
|
|
@HiveField(4)
|
|
final bool? hasAttachment;
|
|
|
|
@HiveField(5)
|
|
final String? preview;
|
|
|
|
@HiveField(6)
|
|
final String? subject;
|
|
|
|
@HiveField(7)
|
|
final DateTime? sentAt;
|
|
|
|
@HiveField(8)
|
|
final List<EmailAddressHiveCache>? from;
|
|
|
|
@HiveField(9)
|
|
final List<EmailAddressHiveCache>? to;
|
|
|
|
@HiveField(10)
|
|
final List<EmailAddressHiveCache>? cc;
|
|
|
|
@HiveField(11)
|
|
final List<EmailAddressHiveCache>? bcc;
|
|
|
|
@HiveField(12)
|
|
final List<EmailAddressHiveCache>? replyTo;
|
|
|
|
@HiveField(13)
|
|
Map<String, bool>? mailboxIds;
|
|
|
|
@HiveField(14)
|
|
Map<String, String?>? headerCalendarEvent;
|
|
|
|
@HiveField(15)
|
|
final String? blobId;
|
|
|
|
@HiveField(16)
|
|
Map<String, String?>? xPriorityHeader;
|
|
|
|
@HiveField(17)
|
|
Map<String, String?>? importanceHeader;
|
|
|
|
@HiveField(18)
|
|
Map<String, String?>? priorityHeader;
|
|
|
|
@HiveField(19)
|
|
String? threadId;
|
|
|
|
@HiveField(20)
|
|
Map<String, String?>? unsubscribeHeader;
|
|
|
|
@HiveField(21)
|
|
final List<String>? messageId;
|
|
|
|
@HiveField(22)
|
|
final List<String>? references;
|
|
|
|
EmailCache(
|
|
this.id,
|
|
{
|
|
this.keywords,
|
|
this.size,
|
|
this.receivedAt,
|
|
this.hasAttachment,
|
|
this.preview,
|
|
this.subject,
|
|
this.sentAt,
|
|
this.from,
|
|
this.to,
|
|
this.cc,
|
|
this.bcc,
|
|
this.replyTo,
|
|
this.mailboxIds,
|
|
this.headerCalendarEvent,
|
|
this.blobId,
|
|
this.xPriorityHeader,
|
|
this.importanceHeader,
|
|
this.priorityHeader,
|
|
this.threadId,
|
|
this.unsubscribeHeader,
|
|
this.messageId,
|
|
this.references,
|
|
}
|
|
);
|
|
|
|
@override
|
|
List<Object?> get props => [
|
|
id,
|
|
subject,
|
|
from,
|
|
to,
|
|
cc,
|
|
bcc,
|
|
keywords,
|
|
size,
|
|
receivedAt,
|
|
sentAt,
|
|
replyTo,
|
|
preview,
|
|
hasAttachment,
|
|
mailboxIds,
|
|
headerCalendarEvent,
|
|
blobId,
|
|
xPriorityHeader,
|
|
importanceHeader,
|
|
priorityHeader,
|
|
threadId,
|
|
unsubscribeHeader,
|
|
messageId,
|
|
references,
|
|
];
|
|
} |