Skip to content

Commit

Permalink
TF-2838 calendar event reject abstract data source & repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora committed Apr 29, 2024
1 parent c727db3 commit f18357e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:jmap_dart_client/jmap/core/id.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_accept_response.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_reject_response.dart';
import 'package:tmail_ui_user/features/email/domain/model/event_action.dart';

abstract class CalendarEventDataSource {
Expand All @@ -11,4 +12,6 @@ abstract class CalendarEventDataSource {
Future<List<EventAction>> getListEventAction(String emailContents);

Future<CalendarEventAcceptResponse> accept(AccountId accountId, Set<Id> blobIds);

Future<CalendarEventRejectResponse> rejectEventInvitation(AccountId accountId, Set<Id> blobIds);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:jmap_dart_client/jmap/core/id.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_accept_response.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_reject_response.dart';
import 'package:tmail_ui_user/features/email/domain/model/event_action.dart';

abstract class CalendarEventRepository {
Expand All @@ -11,4 +12,6 @@ abstract class CalendarEventRepository {
Future<List<EventAction>> getListEventAction(String emailContents);

Future<CalendarEventAcceptResponse> accept(AccountId accountId, Set<Id> blobIds);

Future<CalendarEventRejectResponse> rejectEventInvitation(AccountId accountId, Set<Id> blobIds);
}

0 comments on commit f18357e

Please sign in to comment.