hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMTextMessageBody Class Reference
Inheritance diagram for com.hyphenate.chat.EMTextMessageBody:
com.hyphenate.chat.EMMessageBody

Public Member Functions

 EMTextMessageBody (String msg)
 
String getMessage ()
 
void setMessage (String message)
 
void setTargetLanguages (List< String > languageList)
 
List< String > getTargetLanguages ()
 
List< EMTranslationInfo > getTranslations ()
 
- Public Member Functions inherited from com.hyphenate.chat.EMMessageBody
long operationTime ()
 
String operatorId ()
 
int operationCount ()
 

Detailed Description

The text message body.

EMTextMessageBody body = new EMTextMessageBody("hello hyphenate chat sdk!");
EMTextMessageBody(String msg)
Definition: EMTextMessageBody.java:51

Constructor & Destructor Documentation

◆ EMTextMessageBody()

com.hyphenate.chat.EMTextMessageBody.EMTextMessageBody ( String  msg)

Creates a text message body.

Parameters
msgThe text content.

Member Function Documentation

◆ getMessage()

String com.hyphenate.chat.EMTextMessageBody.getMessage ( )

Gets the text message body.

Returns
The text content.

◆ getTargetLanguages()

List< String > com.hyphenate.chat.EMTextMessageBody.getTargetLanguages ( )

Get the target language for translation

Returns
Language code list

◆ getTranslations()

List< EMTranslationInfo > com.hyphenate.chat.EMTextMessageBody.getTranslations ( )

Get the translation list

Returns
Translation information list

◆ setMessage()

void com.hyphenate.chat.EMTextMessageBody.setMessage ( String  message)

Sets the text message body's content. @Note: you can only modify the local data.

Parameters
messageThe text content.

◆ setTargetLanguages()

void com.hyphenate.chat.EMTextMessageBody.setTargetLanguages ( List< String >  languageList)

Set the target language for translation

Parameters
languageListLanguage code list

The documentation for this class was generated from the following file: