TF-1812 Add SendingEmailHiveCache to store sending email
(cherry picked from commit 7ff4c951b843f7a844e0dd4f0667b85b7fb0b710)
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:tmail_ui_user/features/caching/utils/caching_constants.dart';
|
||||
|
||||
part 'sending_email_hive_cache.g.dart';
|
||||
|
||||
@HiveType(typeId: CachingConstants.SENDING_EMAIL_HIVE_CACHE_ID)
|
||||
class SendingEmailHiveCache extends HiveObject with EquatableMixin {
|
||||
|
||||
@HiveField(0)
|
||||
final String sendingId;
|
||||
|
||||
@HiveField(1)
|
||||
final Map<String, dynamic> emailData;
|
||||
|
||||
@HiveField(2)
|
||||
final String emailActionType;
|
||||
|
||||
@HiveField(3)
|
||||
final String? sentMailboxId;
|
||||
|
||||
@HiveField(4)
|
||||
final String? emailIdDestroyed;
|
||||
|
||||
@HiveField(5)
|
||||
final String? emailIdAnsweredOrForwarded;
|
||||
|
||||
@HiveField(6)
|
||||
final String? identityId;
|
||||
|
||||
@HiveField(7)
|
||||
final String? mailboxNameRequest;
|
||||
|
||||
@HiveField(8)
|
||||
final String? creationIdRequest;
|
||||
|
||||
SendingEmailHiveCache(
|
||||
this.sendingId,
|
||||
this.emailData,
|
||||
this.emailActionType,
|
||||
this.sentMailboxId,
|
||||
this.emailIdDestroyed,
|
||||
this.emailIdAnsweredOrForwarded,
|
||||
this.identityId,
|
||||
this.mailboxNameRequest,
|
||||
this.creationIdRequest
|
||||
);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
sendingId,
|
||||
emailData,
|
||||
emailActionType,
|
||||
sentMailboxId,
|
||||
emailIdDestroyed,
|
||||
emailIdAnsweredOrForwarded,
|
||||
identityId,
|
||||
mailboxNameRequest,
|
||||
creationIdRequest
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user