JsonObjectApiAction

class JsonObjectApiAction<M : PenicillinModel>(    val client: ApiClient,     val request: ApiRequest,     val converter: (JsonObject) -> M) : JsonRequest<M> , ApiAction<JsonObjectResponse<M>>

The ApiAction that provides parsed json object with json model.

Constructors

Link copied to clipboard
fun <M : PenicillinModel> JsonObjectApiAction(    client: ApiClient,     request: ApiRequest,     converter: (JsonObject) -> M)

Functions

Link copied to clipboard
open suspend override fun execute(): JsonObjectResponse<M>

Executes ApiAction and returns its result. This function is suspendable.

Properties

Link copied to clipboard
open override val client: ApiClient

Current ApiClient instance.

Link copied to clipboard
open override val converter: (JsonObject) -> M

Json model converter.

Link copied to clipboard
open override val request: ApiRequest

Current lazy ApiRequest instance.