public abstract class MessageEntity
extends java.lang.Object
MessageEntity abstract class wraps various properties related to messages.| Modifier and Type | Class and Description |
|---|---|
static class |
MessageEntity.Builder |
static class |
MessageEntity.Participant
The
MessageEntity.Participant abstract class wraps various properties related to
the sender and receiver of the message. |
static class |
MessageEntity.Purpose
Enumerations of
MessageEntity.Purpose. |
static class |
MessageEntity.Status
Enumerations of
MessageEntity.Status. |
static class |
MessageEntity.Type
Enumerations of
MessageEntity.Type. |
| Constructor and Description |
|---|
MessageEntity() |
| Modifier and Type | Method and Description |
|---|---|
static MessageEntity.Builder |
builder()
Returns the
MessageEntity.Builder object for the MessageEntity abstract class. |
abstract java.lang.String |
code()
Returns a String of the message code.
|
abstract long |
codeExpiredTs()
Returns a long of the time in seconds at which the code expires.
|
abstract java.util.Map<java.lang.String,java.lang.String> |
content()
Returns the content of the message.
|
abstract long |
createdTs()
Returns a long of the time in seconds at which the message was created.
|
abstract long |
expiredTs()
Returns a long of the time in seconds at which the message was expired.
|
abstract java.lang.String |
iotId()
Returns a String of the identification number of the IoT device.
|
abstract java.lang.String |
iotType()
Returns a String of the type of IoT device.
|
abstract boolean |
isExpired()
Returns a boolean to indicate whether the message is expired or not.
|
abstract java.lang.String |
messageId()
Returns a String of the identification number of the message.
|
abstract MessageEntity.Participant |
participant()
Returns the
MessageEntity.Participant of the message. |
abstract MessageEntity.Purpose |
purpose()
Returns the
MessageEntity.Purpose of message. |
abstract MessageEntity.Status |
status()
Returns the
MessageEntity.Status of the message. |
abstract MessageEntity.Type |
type()
Returns the
MessageEntity.Type of message. |
abstract long |
updateTs()
Returns a long of the time in seconds at which the message was updated.
|
public abstract java.lang.String messageId()
public abstract MessageEntity.Type type()
MessageEntity.Type of message.MessageEntity.Type of message.public abstract long createdTs()
public abstract long updateTs()
public abstract long expiredTs()
public abstract boolean isExpired()
public abstract java.lang.String iotId()
public abstract java.lang.String iotType()
public abstract MessageEntity.Purpose purpose()
MessageEntity.Purpose of message.MessageEntity.Purpose of message.@Nullable public abstract java.lang.String code()
public abstract long codeExpiredTs()
public abstract MessageEntity.Participant participant()
MessageEntity.Participant of the message. This includes both the sender
and receiver of the message.MessageEntity.Participant of the message.public abstract MessageEntity.Status status()
MessageEntity.Status of the message.MessageEntity.Status of the message.@Nullable public abstract java.util.Map<java.lang.String,java.lang.String> content()
null.public static MessageEntity.Builder builder()
MessageEntity.Builder object for the MessageEntity abstract class.MessageEntity.Builder object for the MessageEntity abstract class.