trixnity-client
3.0.0-beta1
trixnity-client
/
net.folivo.trixnity.client.room.message
/
MessageBuilder
Message
Builder
class
MessageBuilder
(
val
isEncryptedRoom
:
Boolean
,
val
mediaService
:
MediaService
)
Constructors
Properties
Extensions
Constructors
Message
Builder
Link copied to clipboard
fun
MessageBuilder
(
isEncryptedRoom
:
Boolean
,
mediaService
:
MediaService
)
Properties
content
Link copied to clipboard
var
content
:
MessageEventContent
?
=
null
is
Encrypted
Room
Link copied to clipboard
val
isEncryptedRoom
:
Boolean
media
Service
Link copied to clipboard
val
mediaService
:
MediaService
Extensions
audio
Link copied to clipboard
suspend
fun
MessageBuilder
.
audio
(
body
:
String
,
audio
:
ByteFlow
,
type
:
ContentType
,
size
:
Int
?
=
null
,
duration
:
Int
?
=
null
)
emote
Link copied to clipboard
fun
MessageBuilder
.
emote
(
body
:
String
,
format
:
String
?
=
null
,
formattedBody
:
String
?
=
null
)
file
Link copied to clipboard
suspend
fun
MessageBuilder
.
file
(
body
:
String
,
file
:
ByteFlow
,
type
:
ContentType
,
size
:
Int
?
=
null
,
name
:
String
?
=
null
)
image
Link copied to clipboard
suspend
fun
MessageBuilder
.
image
(
body
:
String
,
image
:
ByteFlow
,
type
:
ContentType
,
size
:
Int
?
=
null
,
height
:
Int
?
=
null
,
width
:
Int
?
=
null
)
notice
Link copied to clipboard
fun
MessageBuilder
.
notice
(
body
:
String
,
format
:
String
?
=
null
,
formattedBody
:
String
?
=
null
)
text
Link copied to clipboard
fun
MessageBuilder
.
text
(
body
:
String
,
format
:
String
?
=
null
,
formattedBody
:
String
?
=
null
)
video
Link copied to clipboard
suspend
fun
MessageBuilder
.
video
(
body
:
String
,
video
:
ByteFlow
,
type
:
ContentType
,
size
:
Int
?
=
null
,
height
:
Int
?
=
null
,
width
:
Int
?
=
null
,
duration
:
Int
?
=
null
)