QueryEventArgs

data class QueryEventArgs(    val msgid: Int,     val query: Query,     val context: IQueryContext) : EventArgs

QueryEventArgs is a data class that contains a Query and the associated IQueryContext.

Parameters

query

The Query data.

context

The IQueryContext that can be used to respond to the query

Constructors

Link copied to clipboard
fun QueryEventArgs(    msgid: Int,     query: Query,     context: IQueryContext)

Construct a QueryEventArgs.

Functions

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

Respond to the query with an error

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

Respond to query with an error

Properties

Link copied to clipboard
val context: IQueryContext

The IQueryContext that can be used to respond to the query

Link copied to clipboard
val msgid: Int
Link copied to clipboard
val query: Query

The Query data.