ReportEvent

@Serializable
data class ReportEvent(val roomId: RoomId, val eventId: EventId, val asUserId: UserId? = null) : MatrixEndpoint<ReportEvent.Request, Unit>

See also

Constructors

Link copied to clipboard
constructor(roomId: RoomId, eventId: EventId, asUserId: UserId? = null)

Types

Link copied to clipboard
@Serializable
data class Request(val reason: String? = null, val score: Long?)

Properties

Link copied to clipboard
@SerialName(value = "user_id")
val asUserId: UserId? = null
Link copied to clipboard
@SerialName(value = "eventId")
val eventId: EventId
Link copied to clipboard
open val requestContentType: ContentType?
Link copied to clipboard
open val responseContentType: ContentType?
Link copied to clipboard
@SerialName(value = "roomId")
val roomId: RoomId

Functions

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