RulesListResponse

public final class RulesListResponse

Class representation of the nested list envelope returned by GET /v3/rules.

Constructors

Link copied to clipboard
public RulesListResponse RulesListResponse(@Json(name = "data") Object data, @Json(name = "request_id") String requestId, @Json(name = "next_cursor") String nextCursor)

Properties

Link copied to clipboard
private final Object data

Rules list payload. The API has returned both a standard list array and a nested object with items and next_cursor; normalize either shape.

Link copied to clipboard
private final String nextCursor

The cursor to use to get the next page of rules when returned at the top level.

Link copied to clipboard
private final String requestId

The request ID.

Functions

Link copied to clipboard
public final Object getData()

Rules list payload. The API has returned both a standard list array and a nested object with items and next_cursor; normalize either shape.

Link copied to clipboard
public final String getNextCursor()

The cursor to use to get the next page of rules when returned at the top level.

Link copied to clipboard
public final String getRequestId()

The request ID.

Link copied to clipboard

Convert the rules list envelope into the SDK's standard list response.