filterContactsBy method
Future<DecryptedPaginatedListContactDto?>
filterContactsBy(
- UserDto user,
- FilterChain<
ContactDto> filterChain, - String? startKey,
- String? startDocumentId,
- int? limit,
- CryptoConfig<
DecryptedContactDto, ContactDto> config,
Implementation
Future<DecryptedPaginatedListContactDto?> filterContactsBy(UserDto user, FilterChain<ContactDto> filterChain, String? startKey, String? startDocumentId,
int? limit, CryptoConfig<DecryptedContactDto, ContactDto> config) async {
return await (await this.rawFilterContactsBy(filterChain, startDocumentId: startDocumentId, limit: limit))?.let((it) async =>
DecryptedPaginatedListContactDto(
rows: await Future.wait(it.rows.map((it) => config.decryptContact(user.dataOwnerId()!, it))),
pageSize: it.pageSize,
totalSize: it.totalSize,
nextKeyPair: it.nextKeyPair));
}