trixnity-core
Toggle table of contents
4.13.3
common
Platform filter
common
Switch theme
Search in API
trixnity-core
trixnity-core
/
net.folivo.trixnity.core.model.events.m.room
/
RoomMessageEventContent
/
FileBased
/
File
File
@
Serializable
data
class
File
(
val
body
:
String
,
val
format
:
String
?
=
null
,
val
formattedBody
:
String
?
=
null
,
val
fileName
:
String
?
=
null
,
val
info
:
FileInfo
?
=
null
,
val
url
:
String
?
=
null
,
val
file
:
EncryptedFile
?
=
null
,
val
relatesTo
:
RelatesTo
?
=
null
,
val
mentions
:
Mentions
?
=
null
,
val
externalUrl
:
String
?
=
null
)
:
RoomMessageEventContent.FileBased
See also
matrix spec
Members
Members & Extensions
Constructors
File
Link copied to clipboard
constructor
(
body
:
String
,
format
:
String
?
=
null
,
formattedBody
:
String
?
=
null
,
fileName
:
String
?
=
null
,
info
:
FileInfo
?
=
null
,
url
:
String
?
=
null
,
file
:
EncryptedFile
?
=
null
,
relatesTo
:
RelatesTo
?
=
null
,
mentions
:
Mentions
?
=
null
,
externalUrl
:
String
?
=
null
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
body
Link copied to clipboard
@
SerialName
(
value
=
"body"
)
open
override
val
body
:
String
body
Without
Fallback
Link copied to clipboard
val
RoomMessageEventContent
.
bodyWithoutFallback
:
String
external
Url
Link copied to clipboard
@
SerialName
(
value
=
"external_url"
)
open
override
val
externalUrl
:
String
?
=
null
file
Link copied to clipboard
@
SerialName
(
value
=
"file"
)
open
override
val
file
:
EncryptedFile
?
=
null
file
Name
Link copied to clipboard
@
SerialName
(
value
=
"filename"
)
open
override
val
fileName
:
String
?
=
null
format
Link copied to clipboard
@
SerialName
(
value
=
"format"
)
open
override
val
format
:
String
?
=
null
formatted
Body
Link copied to clipboard
@
SerialName
(
value
=
"formatted_body"
)
open
override
val
formattedBody
:
String
?
=
null
formatted
Body
Without
Fallback
Link copied to clipboard
val
RoomMessageEventContent
.
formattedBodyWithoutFallback
:
String
?
info
Link copied to clipboard
@
SerialName
(
value
=
"info"
)
open
override
val
info
:
FileInfo
?
=
null
mentions
Link copied to clipboard
@
SerialName
(
value
=
"m.mentions"
)
open
override
val
mentions
:
Mentions
?
=
null
relates
To
Link copied to clipboard
@
SerialName
(
value
=
"m.relates_to"
)
open
override
val
relatesTo
:
RelatesTo
?
=
null
type
Link copied to clipboard
@
SerialName
(
value
=
"msgtype"
)
open
override
val
type
:
String
url
Link copied to clipboard
@
SerialName
(
value
=
"url"
)
open
override
val
url
:
String
?
=
null