Response

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

Response
Link copied to clipboard
Request that triggered this response.

Types

Status
Link copied to clipboard
Defines all the available statuses that a Response can carry.

Functions

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

Properties

body
Link copied to clipboard
val body: ByteArray
Additional response payload as a ByteArray.
metadata
Link copied to clipboard
val metadata: Map<String, String>
A map of named metadata associated with the response.
request
Link copied to clipboard
val request: LensesComponent.RemoteApiService.Request
Request that triggered this response.
status
Link copied to clipboard
Status of the response.