ApiRequest

class ApiRequest(val client: ApiClient, val builder: ApiRequestBuilder)

Represents api request methods.

Constructors

Link copied to clipboard
fun ApiRequest(client: ApiClient, builder: ApiRequestBuilder)

Functions

Link copied to clipboard
fun <M : PenicillinCursorModel<T>, T : Any> cursorJsonObject(converter: (JsonObject) -> M): CursorJsonObjectApiAction<M, T>

Creates CursorJsonObjectApiAction from this request.

Link copied to clipboard
fun empty(): EmptyApiAction

Creates EmptyApiAction from this request.

Link copied to clipboard
fun <M : PenicillinModel> jsonArray(converter: (JsonObject) -> M): JsonArrayApiAction<M>

Creates JsonArrayApiAction from this request.

Link copied to clipboard
fun <M : PenicillinModel> jsonObject(converter: (JsonObject) -> M): JsonObjectApiAction<M>

Creates JsonObjectApiAction from this request.

Link copied to clipboard
fun <M : PremiumSearchModel> premiumSearchJsonObject(environment: PremiumSearchEnvironment, converter: (JsonObject) -> M): PremiumSearchJsonObjectApiAction<M>

Creates PremiumSearchJsonObjectApiAction from this request.

Link copied to clipboard
fun <L : StreamListener, H : StreamHandler<L>> stream(): StreamApiAction<L, H>

Creates StreamApiAction from this request.

Link copied to clipboard
fun text(): TextApiAction

Creates TextApiAction from this request.

Properties

Link copied to clipboard
val builder: ApiRequestBuilder

Current request builder.

Link copied to clipboard
val client: ApiClient

Current ApiClient instance.

Extensions

Link copied to clipboard
val ApiRequest.session: Session

Shorthand extension to ApiClient.