Chat SDK for Android v1.2.1
agora java chat SDK
Public Member Functions | List of all members Class Reference
Inheritance diagram for

Public Member Functions

 TextMessageBody (String msg)
String getMessage ()
void setMessage (String message)
void setTargetLanguages (List< String > languageList)
List< String > getTargetLanguages ()
List< TranslationInfo > getTranslations ()
- Public Member Functions inherited from
long operationTime ()
String operatorId ()
int operationCount ()

Detailed Description

The text message body.

TextMessageBody body = new TextMessageBody("hello hyphenate chat sdk!");
TextMessageBody(String msg)

Constructor & Destructor Documentation

◆ TextMessageBody() ( String  msg)

Creates a text message body.

msgThe text content.

Member Function Documentation

◆ getMessage()

String ( )

Gets the text message body.

The text content.

◆ getTargetLanguages()

List< String > ( )

Get the target language for translation

Language code list

◆ getTranslations()

List< TranslationInfo > ( )

Get the translation list

Translation information list

◆ setMessage()

void ( String  message)

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

messageThe text content.

◆ setTargetLanguages()

void ( List< String >  languageList)

Set the target language for translation

languageListLanguage code list

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