TF-801 Add domain layer for get all vacation

This commit is contained in:
dab246
2022-08-17 17:30:24 +07:00
committed by Dat H. Pham
parent c171f5fc24
commit da05650278
3 changed files with 56 additions and 0 deletions
@@ -0,0 +1,29 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart';
class LoadingGetAllVacation extends UIState {
LoadingGetAllVacation();
@override
List<Object?> get props => [];
}
class GetAllVacationSuccess extends UIState {
final List<VacationResponse>? listVacationResponse;
GetAllVacationSuccess(this.listVacationResponse);
@override
List<Object?> get props => [listVacationResponse];
}
class GetAllVacationFailure extends FeatureFailure {
final dynamic exception;
GetAllVacationFailure(this.exception);
@override
List<Object> get props => [exception];
}