TF-2859 Add language when reply calendar invitation

This commit is contained in:
DatDang
2024-05-17 14:44:36 +07:00
committed by Dat H. Pham
parent c2979429cf
commit 2e68e7df7d
10 changed files with 161 additions and 36 deletions
@@ -24,23 +24,32 @@ class CalendarEventDataSourceImpl extends CalendarEventDataSource {
}
@override
Future<CalendarEventAcceptResponse> acceptEventInvitation(AccountId accountId, Set<Id> blobIds) {
Future<CalendarEventAcceptResponse> acceptEventInvitation(
AccountId accountId,
Set<Id> blobIds,
String? language) {
return Future.sync(() async {
return await _calendarEventAPI.acceptEventInvitation(accountId, blobIds);
return await _calendarEventAPI.acceptEventInvitation(accountId, blobIds, language);
}).catchError(_exceptionThrower.throwException);
}
@override
Future<CalendarEventMaybeResponse> maybeEventInvitation(AccountId accountId, Set<Id> blobIds) {
Future<CalendarEventMaybeResponse> maybeEventInvitation(
AccountId accountId,
Set<Id> blobIds,
String? language) {
return Future.sync(() async {
return await _calendarEventAPI.maybe(accountId, blobIds);
return await _calendarEventAPI.maybeEventInvitation(accountId, blobIds, language);
}).catchError(_exceptionThrower.throwException);
}
@override
Future<CalendarEventRejectResponse> rejectEventInvitation(AccountId accountId, Set<Id> blobIds) {
Future<CalendarEventRejectResponse> rejectEventInvitation(
AccountId accountId,
Set<Id> blobIds,
String? language) {
return Future.sync(() async {
return await _calendarEventAPI.reject(accountId, blobIds);
return await _calendarEventAPI.rejectEventInvitation(accountId, blobIds, language);
}).catchError(_exceptionThrower.throwException);
}
}