Interface RTCMessage
-
- All Implemented Interfaces:
public interface RTCMessageRTC 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRTCMessage.Companion
-
Method Summary
Modifier and Type Method Description abstract IntegergetConversationType()Gets the conversation type. abstract StringgetTargetId()Gets the target ID (room ID or user ID). abstract RTCMessageContentgetContent()Gets the message content. abstract UnitsetContent(RTCMessageContent content)Sets the message content. abstract StringgetSenderUserId()Gets the sender user ID. abstract UnitsetSenderUserId(String senderUserId)Sets the sender user ID. abstract StringgetObjectName()Gets the object name (message type identifier). abstract UnitsetObjectName(String name)Sets the object name. abstract StringgetUId()Gets the unique message ID (assigned by the server). abstract UnitsetUid(String uid)Sets the unique message ID. abstract LonggetReceivedTime()Gets the message received time. abstract UnitsetReceivedTime(Long receivedTime)Sets the message received time. abstract IntegergetMessageDirection()Gets the message direction (send or receive). abstract UnitsetMessageDirection(Integer messageDirection)Sets the message direction. abstract IntegergetSentStatus()Gets the sending status. abstract UnitsetSentStatus(Integer sentStatus)Sets the sending status. abstract LonggetSentTime()Gets the sent time. abstract UnitsetSentTime(Long time)Sets the sent time. abstract BooleanisOffline()Checks whether this is an offline message. abstract UnitsetOffline(Boolean offline)Sets whether this is an offline message. abstract IntegergetMessageId()Gets the local message ID. abstract UnitsetMessageId(Integer messageId)Sets the local message ID. -
-
Method Detail
-
getConversationType
abstract Integer getConversationType()
Gets the conversation type.
-
getTargetId
abstract String getTargetId()
Gets the target ID (room ID or user ID).
-
getContent
abstract RTCMessageContent getContent()
Gets the message content.
-
setContent
abstract Unit setContent(RTCMessageContent content)
Sets the message content.
-
getSenderUserId
abstract String getSenderUserId()
Gets the sender user ID.
-
setSenderUserId
abstract Unit setSenderUserId(String senderUserId)
Sets the sender user ID.
-
getObjectName
abstract String getObjectName()
Gets the object name (message type identifier).
-
setObjectName
abstract Unit setObjectName(String name)
Sets the object name.
-
getUId
abstract String getUId()
Gets the unique message ID (assigned by the server).
-
getReceivedTime
abstract Long getReceivedTime()
Gets the message received time.
-
setReceivedTime
abstract Unit setReceivedTime(Long receivedTime)
Sets the message received time.
-
getMessageDirection
abstract Integer getMessageDirection()
Gets the message direction (send or receive).
-
setMessageDirection
abstract Unit setMessageDirection(Integer messageDirection)
Sets the message direction.
-
getSentStatus
abstract Integer getSentStatus()
Gets the sending status.
-
setSentStatus
abstract Unit setSentStatus(Integer sentStatus)
Sets the sending status.
-
getSentTime
abstract Long getSentTime()
Gets the sent time.
-
setSentTime
abstract Unit setSentTime(Long time)
Sets the sent time.
-
isOffline
abstract Boolean isOffline()
Checks whether this is an offline message.
-
setOffline
abstract Unit setOffline(Boolean offline)
Sets whether this is an offline message.
-
getMessageId
abstract Integer getMessageId()
Gets the local message ID.
-
setMessageId
abstract Unit setMessageId(Integer messageId)
Sets the local message ID.
-
-
-
-