TF-56 Implement upload single attachment

This commit is contained in:
dab246
2021-09-17 18:04:47 +07:00
committed by Dat H. Pham
parent 6aaa8f93d3
commit 39ca213285
23 changed files with 575 additions and 12 deletions
@@ -0,0 +1,27 @@
import 'package:core/core.dart';
import 'package:model/model.dart';
class UploadAttachmentLoadingState extends UIState {
UploadAttachmentLoadingState();
@override
List<Object?> get props => [];
}
class UploadAttachmentSuccess extends UIState {
final Attachment attachment;
UploadAttachmentSuccess(this.attachment);
@override
List<Object?> get props => [attachment];
}
class UploadAttachmentFailure extends FeatureFailure {
final exception;
UploadAttachmentFailure(this.exception);
@override
List<Object> get props => [exception];
}