TF-2628 Create states & interactor for viewing attachment for web

This commit is contained in:
DatDang
2024-02-27 10:04:43 +07:00
committed by Dat H. Pham
parent 9cffca135b
commit bd401c12a2
3 changed files with 350 additions and 0 deletions
@@ -0,0 +1,23 @@
import 'package:tmail_ui_user/features/email/domain/state/download_attachment_for_web_state.dart';
class StartViewAttachmentForWeb extends StartDownloadAttachmentForWeb {
StartViewAttachmentForWeb(super.taskId, super.attachment);
}
class ViewingAttachmentForWeb extends DownloadingAttachmentForWeb {
ViewingAttachmentForWeb(
super.taskId,
super.attachment,
super.progress,
super.downloaded,
super.total,
);
}
class ViewAttachmentForWebSuccess extends DownloadAttachmentForWebSuccess {
ViewAttachmentForWebSuccess(super.taskId, super.attachment, super.bytes);
}
class ViewAttachmentForWebFailure extends DownloadAttachmentForWebFailure {
ViewAttachmentForWebFailure({super.taskId, super.exception});
}