Inherits com.hyphenate.chat.EMBase< T >.
The translation entity class, which has the following attributes:
msgId: The message ID.
conversationId: The conversation ID.
showTranslation: Whether the translation is displayed.
translateTime: The number of times the message is translated.
translations: The translation content.
- Deprecated:
- use com.hyphenate.chat.EMTextMessageBody.EMTranslationInfo instead.
◆ conversationId()
String com.hyphenate.chat.EMTranslationResult.conversationId |
( |
| ) |
|
Gets the conversation ID.
- Returns
- The conversation ID.
◆ msgId()
String com.hyphenate.chat.EMTranslationResult.msgId |
( |
| ) |
|
Gets the message ID.
- Returns
- The message ID.
◆ setConversationId()
void com.hyphenate.chat.EMTranslationResult.setConversationId |
( |
String |
conversationId | ) |
|
Sets the conversation ID.
- Parameters
-
conversationId | The conversation ID. |
◆ setShowTranslation()
void com.hyphenate.chat.EMTranslationResult.setShowTranslation |
( |
boolean |
showTranslation | ) |
|
Sets whether to display the translation.
- Parameters
-
showTranslation | Whether to display the translation.
|
◆ setTranslateCount()
void com.hyphenate.chat.EMTranslationResult.setTranslateCount |
( |
int |
translateTime | ) |
|
Sets the number of times the message is translated.
- Parameters
-
translateTime | The number of times the message is translated. |
◆ setTranslatedText()
void com.hyphenate.chat.EMTranslationResult.setTranslatedText |
( |
String |
translations | ) |
|
Sets the translation.
- Parameters
-
translations | The translation. |
◆ showTranslation()
boolean com.hyphenate.chat.EMTranslationResult.showTranslation |
( |
| ) |
|
Checks whether to display the translation.
- Returns
- boolean Whether to display the translation.
◆ translateCount()
int com.hyphenate.chat.EMTranslationResult.translateCount |
( |
| ) |
|
Gets the number of times the message is translated.
- Returns
- The number of times the message is translated.
◆ translatedText()
String com.hyphenate.chat.EMTranslationResult.translatedText |
( |
| ) |
|
Gets the translation.
- Returns
- The translation.
The documentation for this class was generated from the following file:
- com/hyphenate/chat/EMTranslationResult.java