JsonArrayResponse

data class JsonArrayResponse<M : PenicillinModel>(    val client: ApiClient,     val results: List<M>,     val request: HttpRequest,     val response: HttpResponse,     val content: String,     val action: ApiAction<JsonArrayResponse<M>>) : ApiResponse<JsonArrayResponse<M>> , JsonResponse<M, JsonArray> , CompletedResponse, List<M>

The ApiResponse that provides parsed json array with json model.

Constructors

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

Functions

Link copied to clipboard
open operator override fun contains(element: M): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<M>): Boolean
Link copied to clipboard
open operator override fun get(index: Int): M
Link copied to clipboard
open override fun indexOf(element: M): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<M>
Link copied to clipboard
open override fun lastIndexOf(element: M): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<M>
open override fun listIterator(index: Int): ListIterator<M>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<M>

Properties

Link copied to clipboard
open override val action: ApiAction<JsonArrayResponse<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: JsonArray

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 results: List<M>

Results of response.

Link copied to clipboard
open override val size: Int