TF-56 Implement upload multiple attachment
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
class UploadAttachmentLoadingState extends UIState {
|
||||
@@ -22,6 +23,33 @@ class UploadAttachmentFailure extends FeatureFailure {
|
||||
|
||||
UploadAttachmentFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
|
||||
class UploadAttachmentAllSuccess extends UIState {
|
||||
final List<Either<Failure, Success>> listResults;
|
||||
|
||||
UploadAttachmentAllSuccess(this.listResults);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [listResults];
|
||||
}
|
||||
|
||||
class UploadAttachmentHasSomeFailure extends UIState {
|
||||
final List<Either<Failure, Success>> listResults;
|
||||
|
||||
UploadAttachmentHasSomeFailure(this.listResults);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [listResults];
|
||||
}
|
||||
|
||||
class UploadAttachmentAllFailure extends FeatureFailure {
|
||||
final exception;
|
||||
|
||||
UploadAttachmentAllFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user