getNotificationsWithHttpInfo method

Future<Response> getNotificationsWithHttpInfo(
  1. String tenantId, {
  2. String? userId,
  3. String? urlId,
  4. String? fromCommentId,
  5. bool? viewed,
  6. String? type,
  7. double? skip,
})

Performs an HTTP 'GET /api/v1/notifications' operation and returns the Response. Parameters:

Implementation

Future<Response> getNotificationsWithHttpInfo(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, double? skip, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/notifications';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (userId != null) {
    queryParams.addAll(_queryParams('', 'userId', userId));
  }
  if (urlId != null) {
    queryParams.addAll(_queryParams('', 'urlId', urlId));
  }
  if (fromCommentId != null) {
    queryParams.addAll(_queryParams('', 'fromCommentId', fromCommentId));
  }
  if (viewed != null) {
    queryParams.addAll(_queryParams('', 'viewed', viewed));
  }
  if (type != null) {
    queryParams.addAll(_queryParams('', 'type', type));
  }
  if (skip != null) {
    queryParams.addAll(_queryParams('', 'skip', skip));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}