Builder

public final class Builder<T extends Object>

Constructors

Link copied to clipboard
public Response.Builder<T> Response.Builder<T extends Any>(Context context, T result, StatusData errorStatus)

Properties

Link copied to clipboard
private Context context
Link copied to clipboard
private StatusData errorStatus
Link copied to clipboard
private T result

Functions

Link copied to clipboard
public final Response.Builder<T> appendToErrorStatusMessage(String additionalMessage)
Link copied to clipboard
public final Response<T> build()
Link copied to clipboard
public final Response.Builder<T> fromErrorResponseType(ErrorResponseType errorResponseType)
Link copied to clipboard
public final Response.Builder<T> fromErrorStatusCode(Integer statusCode)
Link copied to clipboard
public final Response.Builder<T> fromResponse(Response<T> response)
Link copied to clipboard
public final Response.Builder<T> fromSuccessResponseType(SuccessResponseType successResponseType)
Link copied to clipboard
public final Context getContext()
Link copied to clipboard
public final StatusData getErrorStatus()
Link copied to clipboard
public final T getResult()
Link copied to clipboard
public final Response.Builder<T> result(T result)
Link copied to clipboard
public final Unit setContext(Context context)
Link copied to clipboard
public final Unit setErrorStatus(StatusData errorStatus)
Link copied to clipboard
public final Unit setResult(T result)