Response

class Response(    val request: LensesComponent.RemoteApiService.Request,     val status: LensesComponent.RemoteApiService.Response.Status,     val metadata: Map<String, String>,     val body: ByteArray)

Defines the data model for a response to a request sent by a lens.

Parameters

request

Request that triggered this response.

status

Status of the response.

metadata

A map of named metadata associated with the response.

body

Additional response payload as a ByteArray.

Constructors

Link copied to clipboard
fun Response(    request: LensesComponent.RemoteApiService.Request,     status: LensesComponent.RemoteApiService.Response.Status,     metadata: Map<String, String>,     body: ByteArray)

Types

Link copied to clipboard

Defines all the available statuses that a Response can carry.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard