Package live.hms.video.sdk.models
Class HMSMessage
-
- All Implemented Interfaces:
public final class HMSMessageClass for retrieving the attributes of a group(HMSRole based ) or peer-to-peer message
-
-
Method Summary
Modifier and Type Method Description final StringgetMessage()Content of the text message or the text description of the raw message. final StringgetType()Type of message sent. final HMSMessageRecipientgetRecipient()The intended recipient(s) of this message final LonggetServerReceiveTime()timestamp of when the messaging server receives this message final UnitsetServerReceiveTime(Long serverReceiveTime)timestamp of when the messaging server receives this message final HMSPeergetSender()The HMSPeer who is sending this message. final UnitsetSender(HMSPeer sender)The HMSPeer who is sending this message. final StringgetMessageId()-
-
Method Detail
-
getMessage
final String getMessage()
Content of the text message or the text description of the raw message.
-
getRecipient
final HMSMessageRecipient getRecipient()
The intended recipient(s) of this message
-
getServerReceiveTime
final Long getServerReceiveTime()
timestamp of when the messaging server receives this message
-
setServerReceiveTime
final Unit setServerReceiveTime(Long serverReceiveTime)
timestamp of when the messaging server receives this message
-
getSender
final HMSPeer getSender()
The HMSPeer who is sending this message. This will be null be when sent via REST API using admin token
-
setSender
final Unit setSender(HMSPeer sender)
The HMSPeer who is sending this message. This will be null be when sent via REST API using admin token
-
getMessageId
final String getMessageId()
-
-
-
-