TF-138 Add data layer for search mail with text pattern
This commit is contained in:
@@ -249,4 +249,24 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
||||
|
||||
yield EmailsResponse(emailList: newEmailList, state: emailResponse.state);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<Email>> searchEmails(
|
||||
AccountId accountId,
|
||||
{
|
||||
UnsignedInt? limit,
|
||||
Set<Comparator>? sort,
|
||||
Filter? filter,
|
||||
Properties? properties
|
||||
}
|
||||
) async {
|
||||
final emailResponse = await mapDataSource[DataSourceType.network]!.getAllEmail(
|
||||
accountId,
|
||||
limit: limit,
|
||||
sort: sort,
|
||||
filter: filter,
|
||||
properties: properties);
|
||||
|
||||
return emailResponse.emailList ?? List.empty();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user