TF-3416 Implement parse email by blob id interactor

This commit is contained in:
dab246
2025-01-10 16:36:26 +07:00
committed by Dat H. Pham
parent ebbca0ee20
commit 7cbdfddb6d
26 changed files with 227 additions and 33 deletions
@@ -378,4 +378,11 @@ class EmailDataSourceImpl extends EmailDataSource {
Future<void> markAsForwarded(Session session, AccountId accountId, List<EmailId> emailIds) {
throw UnimplementedError();
}
@override
Future<List<Email>> parseEmailByBlobIds(AccountId accountId, Set<Id> blobIds) {
return Future.sync(() async {
return await emailAPI.parseEmailByBlobIds(accountId, blobIds);
}).catchError(_exceptionThrower.throwException);
}
}
@@ -526,4 +526,9 @@ class EmailHiveCacheDataSourceImpl extends EmailDataSource {
return Future.value();
}
@override
Future<List<Email>> parseEmailByBlobIds(AccountId accountId, Set<Id> blobIds) {
throw UnimplementedError();
}
}