GetEvents

@Serializable
data class GetEvents(val roomId: RoomId, val from: String? = null, val to: String? = null, val dir: GetEvents.Direction, val limit: Long? = null, val filter: String? = null, val asUserId: UserId? = null) : MatrixEndpoint<Unit, GetEvents.Response>

See also

Constructors

Link copied to clipboard
constructor(roomId: RoomId, from: String? = null, to: String? = null, dir: GetEvents.Direction, limit: Long? = null, filter: String? = null, asUserId: UserId? = null)

Types

Link copied to clipboard
@Serializable
enum Direction : Enum<GetEvents.Direction>
Link copied to clipboard
@Serializable
data class Response(val start: String, val end: String? = null, val chunk: List<Event.RoomEvent<*>>? = null, val state: List<Event.StateEvent<*>>? = null)

Functions

Link copied to clipboard
open fun requestSerializerBuilder(mappings: EventContentSerializerMappings, json: Json): KSerializer<Unit>?
Link copied to clipboard
open fun responseSerializerBuilder(mappings: EventContentSerializerMappings, json: Json): KSerializer<GetEvents.Response>?

Properties

Link copied to clipboard
val asUserId: UserId? = null
Link copied to clipboard
Link copied to clipboard
val filter: String? = null
Link copied to clipboard
val from: String? = null
Link copied to clipboard
val limit: Long? = null
Link copied to clipboard
open val requestContentType: ContentType?
Link copied to clipboard
open val responseContentType: ContentType?
Link copied to clipboard
val roomId: RoomId
Link copied to clipboard
val to: String? = null