Add domain layer for get list Email in Mailbox

This commit is contained in:
dab246
2021-08-10 12:32:33 +07:00
committed by Dat H. Pham
parent 4ec4fac99b
commit 3be516a93c
5 changed files with 111 additions and 0 deletions
@@ -0,0 +1,20 @@
import 'package:core/core.dart';
import 'package:model/model.dart';
class GetAllEmailSuccess extends UIState {
final List<PresentationEmail> emailList;
GetAllEmailSuccess(this.emailList);
@override
List<Object> get props => [emailList];
}
class GetAllEmailFailure extends FeatureFailure {
final exception;
GetAllEmailFailure(this.exception);
@override
List<Object> get props => [exception];
}