TF-825 Download email as EML file (#2854)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import 'dart:typed_data';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/id.dart';
|
||||
import 'package:model/download/download_task_id.dart';
|
||||
import 'package:model/email/attachment.dart';
|
||||
|
||||
@@ -59,14 +58,14 @@ class DownloadAttachmentForWebSuccess extends UIState {
|
||||
class DownloadAttachmentForWebFailure extends FeatureFailure {
|
||||
|
||||
final DownloadTaskId? taskId;
|
||||
final Id? attachmentBlobId;
|
||||
final Attachment? attachment;
|
||||
|
||||
DownloadAttachmentForWebFailure({
|
||||
required this.attachmentBlobId,
|
||||
this.attachment,
|
||||
this.taskId,
|
||||
dynamic exception
|
||||
}) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [taskId, ...super.props];
|
||||
List<Object?> get props => [attachment, taskId, ...super.props];
|
||||
}
|
||||
@@ -22,7 +22,7 @@ class ViewAttachmentForWebSuccess extends DownloadAttachmentForWebSuccess {
|
||||
|
||||
class ViewAttachmentForWebFailure extends DownloadAttachmentForWebFailure {
|
||||
ViewAttachmentForWebFailure({
|
||||
required super.attachmentBlobId,
|
||||
required super.attachment,
|
||||
super.taskId,
|
||||
super.exception,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user