The text message body.
TextMessageBody(String msg)
Definition: TextMessageBody.java:39
◆ TextMessageBody()
io.agora.chat.TextMessageBody.TextMessageBody |
( |
String |
msg | ) |
|
Creates a text message body.
- Parameters
-
◆ getMessage()
String io.agora.chat.TextMessageBody.getMessage |
( |
| ) |
|
Gets the text message body.
- Returns
- The text content.
◆ getTargetLanguages()
List< String > io.agora.chat.TextMessageBody.getTargetLanguages |
( |
| ) |
|
Get the target language for translation
- Returns
- Language code list
◆ getTranslations()
List< TranslationInfo > io.agora.chat.TextMessageBody.getTranslations |
( |
| ) |
|
Get the translation list
- Returns
- Translation information list
◆ setMessage()
void io.agora.chat.TextMessageBody.setMessage |
( |
String |
message | ) |
|
Sets the text message body's content. @Note: you can only modify the local data.
- Parameters
-
◆ setTargetLanguages()
void io.agora.chat.TextMessageBody.setTargetLanguages |
( |
List< String > |
languageList | ) |
|
Set the target language for translation
- Parameters
-
languageList | Language code list |
The documentation for this class was generated from the following file:
- io/agora/chat/TextMessageBody.java