IQueryContext

interface IQueryContext

IQueryContext is created when a Query is received from a peer. It declares the actions that that can be taken in response to a remote support query.

Functions

Link copied to clipboard
open suspend fun error(errorInfo: IMessageError): Boolean

Respond to the query with an error

abstract suspend fun error(status: Long, message: String): Boolean

Respond to query with an error

Link copied to clipboard
open suspend fun respond(value: TaggedValue, final: Boolean = true): Boolean
abstract suspend fun respond(    tag: String,     data: ByteBuffer,     final: Boolean = true): Boolean
open suspend fun respond(    tag: String,     data: ByteArray,     final: Boolean = true): Boolean
open suspend fun respond(    tag: String,     data: String,     final: Boolean = true): Boolean

Respond to the Query with data.

Properties

Link copied to clipboard
abstract val hasExecuted: Boolean

Indicates if the query has already been processed

Link copied to clipboard
abstract val queryId: String

The ID of the associated query