TF-2802 Create calendar event accept interactor

This commit is contained in:
DatDang
2024-04-15 14:42:40 +07:00
committed by Dat H. Pham
parent 101fec89ee
commit c438352e11
4 changed files with 110 additions and 0 deletions
@@ -0,0 +1,12 @@
import 'package:tmail_ui_user/features/email/domain/state/calendar_event_reply_state.dart';
class CalendarEventAccepting extends CalendarEventReplying {}
class CalendarEventAccepted extends CalendarEventReplySuccess {
CalendarEventAccepted(super.calendarEventAcceptResponse);
}
class CalendarEventAcceptFailure extends CalendarEventReplyFailure {
CalendarEventAcceptFailure({super.exception});
}
@@ -0,0 +1,18 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/core/method/response/calendar_event_reply_response.dart';
class CalendarEventReplying extends LoadingState {}
class CalendarEventReplySuccess extends UIState {
final CalendarEventReplyResponse calendarEventReplyResponse;
CalendarEventReplySuccess(this.calendarEventReplyResponse);
@override
List<Object?> get props => [calendarEventReplyResponse];
}
class CalendarEventReplyFailure extends FeatureFailure {
CalendarEventReplyFailure({super.exception});
}