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