RTCMessage

public interface RTCMessage

RTC message interface.

Represents a complete RTC message including conversation type, target ID, message content, etc. This interface is for internal RTC module use only. External developers should not call this directly.

Inheritors

Types

Link copied to clipboard
public class Companion

Functions

Link copied to clipboard
public abstract RTCMessageContent getContent()

Gets the message content.

Link copied to clipboard
public abstract Integer getConversationType()

Gets the conversation type.

Link copied to clipboard
public abstract Integer getMessageDirection()

Gets the message direction (send or receive).

Link copied to clipboard
public abstract Integer getMessageId()

Gets the local message ID.

Link copied to clipboard
public abstract String getObjectName()

Gets the object name (message type identifier).

Link copied to clipboard
public abstract Long getReceivedTime()

Gets the message received time.

Link copied to clipboard
public abstract String getSenderUserId()

Gets the sender user ID.

Link copied to clipboard
public abstract Integer getSentStatus()

Gets the sending status.

Link copied to clipboard
public abstract Long getSentTime()

Gets the sent time.

Link copied to clipboard
public abstract String getTargetId()

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

Link copied to clipboard
public abstract String getUId()

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

Link copied to clipboard
public abstract Boolean isOffline()

Checks whether this is an offline message.

Link copied to clipboard
public abstract Unit setContent(RTCMessageContent content)

Sets the message content.

Link copied to clipboard
public abstract Unit setMessageDirection(Integer messageDirection)

Sets the message direction.

Link copied to clipboard
public abstract Unit setMessageId(Integer messageId)

Sets the local message ID.

Link copied to clipboard
public abstract Unit setObjectName(String name)

Sets the object name.

Link copied to clipboard
public abstract Unit setOffline(Boolean offline)

Sets whether this is an offline message.

Link copied to clipboard
public abstract Unit setReceivedTime(Long receivedTime)

Sets the message received time.

Link copied to clipboard
public abstract Unit setSenderUserId(String senderUserId)

Sets the sender user ID.

Link copied to clipboard
public abstract Unit setSentStatus(Integer sentStatus)

Sets the sending status.

Link copied to clipboard
public abstract Unit setSentTime(Long time)

Sets the sent time.

Link copied to clipboard
public abstract Unit setUid(String uid)

Sets the unique message ID.