getUserNotificationsWithHttpInfo method

Future<Response> getUserNotificationsWithHttpInfo(
  1. String tenantId, {
  2. String? urlId,
  3. int? pageSize,
  4. String? afterId,
  5. bool? includeContext,
  6. int? afterCreatedAt,
  7. bool? unreadOnly,
  8. bool? dmOnly,
  9. bool? noDm,
  10. bool? includeTranslations,
  11. bool? includeTenantNotifications,
  12. String? sso,
})

Performs an HTTP 'GET /user-notifications' operation and returns the Response. Parameters:

  • String tenantId (required):

  • String urlId: Used to determine whether the current page is subscribed.

  • int pageSize:

  • String afterId:

  • bool includeContext:

  • int afterCreatedAt:

  • bool unreadOnly:

  • bool dmOnly:

  • bool noDm:

  • bool includeTranslations:

  • bool includeTenantNotifications:

  • String sso:

Implementation

Future<Response> getUserNotificationsWithHttpInfo(String tenantId, { String? urlId, int? pageSize, String? afterId, bool? includeContext, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, bool? includeTranslations, bool? includeTenantNotifications, String? sso, }) async {
  // ignore: prefer_const_declarations
  final path = r'/user-notifications';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (urlId != null) {
    queryParams.addAll(_queryParams('', 'urlId', urlId));
  }
  if (pageSize != null) {
    queryParams.addAll(_queryParams('', 'pageSize', pageSize));
  }
  if (afterId != null) {
    queryParams.addAll(_queryParams('', 'afterId', afterId));
  }
  if (includeContext != null) {
    queryParams.addAll(_queryParams('', 'includeContext', includeContext));
  }
  if (afterCreatedAt != null) {
    queryParams.addAll(_queryParams('', 'afterCreatedAt', afterCreatedAt));
  }
  if (unreadOnly != null) {
    queryParams.addAll(_queryParams('', 'unreadOnly', unreadOnly));
  }
  if (dmOnly != null) {
    queryParams.addAll(_queryParams('', 'dmOnly', dmOnly));
  }
  if (noDm != null) {
    queryParams.addAll(_queryParams('', 'noDm', noDm));
  }
  if (includeTranslations != null) {
    queryParams.addAll(_queryParams('', 'includeTranslations', includeTranslations));
  }
  if (includeTenantNotifications != null) {
    queryParams.addAll(_queryParams('', 'includeTenantNotifications', includeTenantNotifications));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }

  const contentTypes = <String>[];


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