hyphenate_SDK3.0 4.0.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMMessageStatistics Class Reference

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

Public Member Functions

 EMMessageStatistics (EMAMessageStatistics message)
 
String getMsgId ()
 
String getTo ()
 
String getFrom ()
 
EMMessage.Type getType ()
 
EMMessage.ChatType getChatType ()
 
long getMsgTime ()
 
EMMessage.Direct direct ()
 
long getMsgSize ()
 
long getAttachmentSize ()
 
long getThumbnailSize ()
 
String toString ()
 

Member Function Documentation

◆ direct()

EMMessage.Direct com.hyphenate.chat.EMMessageStatistics.direct ( )

Gets the message direction:

  • SEND: The message is sent from the local client.
  • RECEIVE: The message is received by the local client.
Returns
The message direction. See com.hyphenate.chat.EMMessage.Direct.

◆ getAttachmentSize()

long com.hyphenate.chat.EMMessageStatistics.getAttachmentSize ( )

Gets the amount of traffic for the message attachment.

The traffic is measured in bytes.

Returns
The traffic for the message attachment.

◆ getChatType()

EMMessage.ChatType com.hyphenate.chat.EMMessageStatistics.getChatType ( )

Gets the chat type.

Returns
The chat type.

◆ getFrom()

String com.hyphenate.chat.EMMessageStatistics.getFrom ( )

Gets the user ID of the message sender.

Returns
The user ID of the message sender.

◆ getMsgId()

String com.hyphenate.chat.EMMessageStatistics.getMsgId ( )

Gets the message ID.

Returns
The message ID.

◆ getMsgSize()

long com.hyphenate.chat.EMMessageStatistics.getMsgSize ( )

Gets the amount of traffic for the message body.

The traffic is measured in bytes.

Returns
The traffic for the message body.

◆ getMsgTime()

long com.hyphenate.chat.EMMessageStatistics.getMsgTime ( )

Gets the Unix timestamp when the server receives the message.

The Unix timestamp is in the unit of millisecond.

Returns
The Unix timestamp when the server receives the message.

◆ getThumbnailSize()

long com.hyphenate.chat.EMMessageStatistics.getThumbnailSize ( )

Gets the amount of traffic for the thumbnail.

The traffic is measured in bytes.

Returns
The traffic for the thumbnail.

◆ getTo()

String com.hyphenate.chat.EMMessageStatistics.getTo ( )

Gets the user ID of the message recipient.

Returns
The user ID of the message recipient.

◆ getType()

EMMessage.Type com.hyphenate.chat.EMMessageStatistics.getType ( )

Gets the message type.

Returns
The message type.

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