rawFindAccessLogsByUserAfterDate method

Future<PaginatedListAccessLogDto?> rawFindAccessLogsByUserAfterDate(
  1. String userId, {
  2. String? accessType,
  3. int? startDate,
  4. String? startKey,
  5. String? startDocumentId,
  6. int? limit,
  7. bool? descending,
})

Get Paginated List of Access logs by user after date

Parameters:

  • String userId (required): A User ID

  • String accessType: The type of access (COMPUTER or USER)

  • int startDate: The start search epoch

  • String startKey: The start key for pagination

  • String startDocumentId: A patient document ID

  • int limit: Number of rows

  • bool descending: Descending order

Implementation

Future<PaginatedListAccessLogDto?> rawFindAccessLogsByUserAfterDate(String userId, { String? accessType, int? startDate, String? startKey, String? startDocumentId, int? limit, bool? descending, }) async {
  final response = await rawFindAccessLogsByUserAfterDateWithHttpInfo(userId,  accessType: accessType, startDate: startDate, startKey: startKey, startDocumentId: startDocumentId, limit: limit, descending: descending, );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException.withRequestId(response.statusCode, await _decodeBodyBytes(response), response.headers["x-request-id"], response.request?.url.toString());
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PaginatedListAccessLogDto',) as PaginatedListAccessLogDto;

  }
  return null;
}