ListResponse

public final class ListResponse<T extends Object>

Class representation of a Nylas response object that contains a list of objects.

Constructors

Link copied to clipboard
public ListResponse<T> ListResponse<T extends Any>(@Json(name = "data") List<T> data, @Json(name = "request_id") String requestId, @Json(name = "next_cursor") String nextCursor)

Properties

Link copied to clipboard
private final List<T> data

The list of requested data objects.

Link copied to clipboard
private final String nextCursor

The cursor to use to get the next page of data.

Link copied to clipboard
private final String requestId

The request ID.

Functions

Link copied to clipboard
public final List<T> getData()

The list of requested data objects.

Link copied to clipboard
public final String getNextCursor()

The cursor to use to get the next page of data.

Link copied to clipboard
public final String getRequestId()

The request ID.