findContactsByOpeningDate method

Future<DecryptedPaginatedListContactDto?> findContactsByOpeningDate(
  1. UserDto user,
  2. int startKey,
  3. int endKey,
  4. String hcpartyid,
  5. String? startDocumentId,
  6. int? limit,
  7. CryptoConfig<DecryptedContactDto, ContactDto> config,
)

Implementation

Future<DecryptedPaginatedListContactDto?> findContactsByOpeningDate(UserDto user, int startKey, int endKey, String hcpartyid,
    String? startDocumentId, int? limit, CryptoConfig<DecryptedContactDto, ContactDto> config) async {
  return await (await this.rawFindContactsByOpeningDate(startKey, endKey, hcpartyid, 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));
}