getOfflineUsersWithHttpInfo method

Future<Response> getOfflineUsersWithHttpInfo(
  1. String tenantId,
  2. String urlId, [
  3. GetOfflineUsersOptions? options
])

Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a "Members" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost.

Note: This method returns the HTTP Response.

Parameters:

  • String tenantId (required):

  • String urlId (required): Page URL identifier (cleaned server-side).

  • String afterName: Cursor: pass nextAfterName from the previous response.

  • String afterUserId: Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.

Implementation

Future<Response> getOfflineUsersWithHttpInfo(String tenantId, String urlId, [ GetOfflineUsersOptions? options ]) async {
  final afterName = options?.afterName;
  final afterUserId = options?.afterUserId;
  // ignore: prefer_const_declarations
  final path = r'/pages/{tenantId}/users/offline'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'urlId', urlId));
  if (afterName != null) {
    queryParams.addAll(_queryParams('', 'afterName', afterName));
  }
  if (afterUserId != null) {
    queryParams.addAll(_queryParams('', 'afterUserId', afterUserId));
  }

  const contentTypes = <String>[];


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