JsonObjectResponse

data class JsonObjectResponse<M : PenicillinModel>(    val client: ApiClient,     val result: M,     val request: HttpRequest,     val response: HttpResponse,     val content: String,     val action: ApiAction<JsonObjectResponse<M>>) : ApiResponse<JsonObjectResponse<M>> , JsonResponse<M, JsonObject> , CompletedResponse

The ApiResponse that provides parsed json object with json model.

Constructors

Link copied to clipboard
fun <M : PenicillinModel> JsonObjectResponse(    client: ApiClient,     result: M,     request: HttpRequest,     response: HttpResponse,     content: String,     action: ApiAction<JsonObjectResponse<M>>)

Properties

Link copied to clipboard
open override val action: ApiAction<JsonObjectResponse<M>>

Executed ApiAction instance.

Link copied to clipboard
open override val client: ApiClient

Current ApiClient instance.

Link copied to clipboard
open override val content: String

Text response.

Link copied to clipboard
open override val json: JsonObject

Json element.

Link copied to clipboard
open override val request: HttpRequest

Http request object.

Link copied to clipboard
open override val response: HttpResponse

Http response object.

Link copied to clipboard
val result: M

Result of response.

Extensions

Link copied to clipboard
val JsonObjectResponse<Search>.hasNext: Boolean

Whether if current search result has next page.

Link copied to clipboard
val JsonObjectResponse<Search>.next: JsonObjectApiAction<Search>

Creates next page api action.

Link copied to clipboard
val JsonObjectResponse<Search>.refresh: JsonObjectApiAction<Search>

Creates refreshed page api action.

Link copied to clipboard
val JsonObjectResponse<Search>.refreshable: Boolean

Whether if current search result is refreshable.