TF-4128 Separate download handling into independent class to decouple from views on web

This commit is contained in:
dab246
2025-10-28 16:44:40 +07:00
committed by Dat H. Pham
parent 832f8e1391
commit be8eaf6258
37 changed files with 955 additions and 1095 deletions
@@ -1,17 +0,0 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:model/download/download_task_id.dart';
class DownloadAttachmentsSuccess extends UIState {
final List<DownloadTaskId> taskIds;
DownloadAttachmentsSuccess(this.taskIds);
@override
List<Object> get props => [taskIds];
}
class DownloadAttachmentsFailure extends FeatureFailure {
DownloadAttachmentsFailure(dynamic exception) : super(exception: exception);
}