hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMTranslationResult Class Reference

Inherits com.hyphenate.chat.EMBase< T >.

Public Member Functions

String msgId ()
 
String conversationId ()
 
void setConversationId (String conversationId)
 
boolean showTranslation ()
 
void setShowTranslation (boolean showTranslation)
 
int translateCount ()
 
void setTranslateCount (int translateTime)
 
String translatedText ()
 
void setTranslatedText (String translations)
 

Detailed Description

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.

Member Function Documentation

◆ 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
conversationIdThe conversation ID.

◆ setShowTranslation()

void com.hyphenate.chat.EMTranslationResult.setShowTranslation ( boolean  showTranslation)

Sets whether to display the translation.

Parameters
showTranslationWhether to display the translation.
  • true: Yes.
  • false: No.

◆ setTranslateCount()

void com.hyphenate.chat.EMTranslationResult.setTranslateCount ( int  translateTime)

Sets the number of times the message is translated.

Parameters
translateTimeThe number of times the message is translated.

◆ setTranslatedText()

void com.hyphenate.chat.EMTranslationResult.setTranslatedText ( String  translations)

Sets the translation.

Parameters
translationsThe translation.

◆ showTranslation()

boolean com.hyphenate.chat.EMTranslationResult.showTranslation ( )

Checks whether to display the translation.

Returns
boolean Whether to display the translation.
  • true: Yes.
  • false: No.

◆ 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: