trixnity-core
Toggle table of contents
4.12.2
common
Platform filter
common
Switch theme
Search in API
trixnity-core
trixnity-core
/
net.folivo.trixnity.core.model.events.m.room
/
RoomMessageEventContent
Room
Message
Event
Content
@
Serializable
(
with
=
RoomMessageEventContentSerializer::class
)
sealed
interface
RoomMessageEventContent
:
MessageEventContent
See also
matrix spec
Inheritors
TextBased
FileBased
Location
VerificationRequest
Unknown
Members
Members & Extensions
Types
File
Based
Link copied to clipboard
sealed
interface
FileBased
:
RoomMessageEventContent
Location
Link copied to clipboard
@
Serializable
data
class
Location
(
val
body
:
String
,
val
geoUri
:
String
,
val
relatesTo
:
RelatesTo
?
=
null
,
val
mentions
:
Mentions
?
=
null
,
val
externalUrl
:
String
?
=
null
)
:
RoomMessageEventContent
Text
Based
Link copied to clipboard
sealed
interface
TextBased
:
RoomMessageEventContent
Unknown
Link copied to clipboard
data
class
Unknown
(
val
type
:
String
,
val
body
:
String
,
val
raw
:
JsonObject
,
val
format
:
String
?
=
null
,
val
formattedBody
:
String
?
=
null
,
val
relatesTo
:
RelatesTo
?
=
null
,
val
mentions
:
Mentions
?
=
null
,
val
externalUrl
:
String
?
=
null
)
:
RoomMessageEventContent
Verification
Request
Link copied to clipboard
@
Serializable
data
class
VerificationRequest
(
val
fromDevice
:
String
,
val
to
:
UserId
,
val
methods
:
Set
<
VerificationMethod
>
,
val
body
:
String
=
"Attempting verification request (m.key.verification.request). Apparently your client doesn't support this."
,
val
format
:
String
?
=
null
,
val
formattedBody
:
String
?
=
null
,
val
relatesTo
:
RelatesTo
?
=
null
,
val
mentions
:
Mentions
?
=
null
,
val
externalUrl
:
String
?
=
null
)
:
RoomMessageEventContent
,
VerificationRequest
Properties
body
Link copied to clipboard
abstract
val
body
:
String
body
Without
Fallback
Link copied to clipboard
val
RoomMessageEventContent
.
bodyWithoutFallback
:
String
external
Url
Link copied to clipboard
abstract
val
externalUrl
:
String
?
format
Link copied to clipboard
abstract
val
format
:
String
?
formatted
Body
Link copied to clipboard
abstract
val
formattedBody
:
String
?
formatted
Body
Without
Fallback
Link copied to clipboard
val
RoomMessageEventContent
.
formattedBodyWithoutFallback
:
String
?
mentions
Link copied to clipboard
abstract
val
mentions
:
Mentions
?
relates
To
Link copied to clipboard
abstract
val
relatesTo
:
RelatesTo
?