Response

public final class Response<T extends Object>

Class representation of a Nylas response object

Constructors

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

Properties

Link copied to clipboard
private final T data

The requested data object

Link copied to clipboard
private final String requestId

The request ID

Functions

Link copied to clipboard
public final T getData()

The requested data object

Link copied to clipboard
public final String getRequestId()

The request ID