RTCMessageImpl

public final class RTCMessageImpl implements RTCMessage

Default RTCMessage implementation.

This class is for internal RTC module use only. External developers should not call this directly.

Constructors

Link copied to clipboard
public RTCMessageImpl RTCMessageImpl(String targetId, Integer conversationType, RTCMessageContent content)

Functions

Link copied to clipboard

Gets the message content.

Link copied to clipboard
public Integer getConversationType()

Gets the conversation type.

Link copied to clipboard
public Integer getMessageDirection()

Gets the message direction (send or receive).

Link copied to clipboard
public Integer getMessageId()

Gets the local message ID.

Link copied to clipboard
public String getObjectName()

Gets the object name (message type identifier).

Link copied to clipboard
public Long getReceivedTime()

Gets the message received time.

Link copied to clipboard
public String getSenderUserId()

Gets the sender user ID.

Link copied to clipboard
public Integer getSentStatus()

Gets the sending status.

Link copied to clipboard
public Long getSentTime()

Gets the sent time.

Link copied to clipboard
public String getTargetId()

Gets the target ID (room ID or user ID).

Link copied to clipboard
public String getUId()

Gets the unique message ID (assigned by the server).

Link copied to clipboard
public Boolean isOffline()

Checks whether this is an offline message.

Link copied to clipboard

Sets the message content.

Link copied to clipboard
public Unit setMessageDirection(Integer messageDirection)

Sets the message direction.

Link copied to clipboard
public Unit setMessageId(Integer messageId)

Sets the local message ID.

Link copied to clipboard
public Unit setObjectName(String name)

Sets the object name.

Link copied to clipboard
public Unit setOffline(Boolean offline)

Sets whether this is an offline message.

Link copied to clipboard
public Unit setReceivedTime(Long receivedTime)

Sets the message received time.

Link copied to clipboard
public Unit setSenderUserId(String senderUserId)

Sets the sender user ID.

Link copied to clipboard
public Unit setSentStatus(Integer sentStatus)

Sets the sending status.

Link copied to clipboard
public Unit setSentTime(Long time)

Sets the sent time.

Link copied to clipboard
public Unit setUid(String uid)

Sets the unique message ID.