listInboxWithHttpInfo method

Future<Response> listInboxWithHttpInfo({
  1. String? category,
  2. bool? unreadOnly,
  3. int? limit,
})

Unified inbox feed across mail, channel mentions, DMs, system notifications.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> listInboxWithHttpInfo({ String? category, bool? unreadOnly, int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/inbox';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (category != null) {
    queryParams.addAll(_queryParams('', 'category', category));
  }
  if (unreadOnly != null) {
    queryParams.addAll(_queryParams('', 'unreadOnly', unreadOnly));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const contentTypes = <String>[];


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