public abstract class InboxEntity
extends java.lang.Object
InboxEntity abstract class wraps various attributes related to the inbox, including
notification ID, sender name, sender title, and message, among others.| Modifier and Type | Class and Description |
|---|---|
static class |
InboxEntity.SenderEntity
The
InboxEntity.SenderEntity abstract class wraps various properties related to the sender of an
InboxEntity, including badge ID, name, and title, among others. |
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID_NOTIFICATION_ID
Invalid notification ID.
|
static int |
INVALID_OPTION_ID
Invalid option ID.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
badgeId()
Returns an int of the identification number of the badge, which received the notification.
|
abstract long |
createdTime()
Returns a long of the time in seconds at which the notification was sent.
|
static InboxEntity |
fromJsonString(java.lang.String jsonString)
Returns an
InboxEntity object after parsing a JSON string. |
abstract java.lang.String |
message()
Returns a String of the message.
|
abstract int |
notificationId()
Returns an int of the identification number of the notification.
|
abstract java.lang.String |
option()
Returns a String of the chosen option.
|
abstract java.util.List<java.lang.String> |
optionList()
Returns a
List of Strings of options. |
abstract long |
repliedTime()
Returns a long of the time in seconds at which the notification was replied to.
|
abstract InboxEntity.SenderEntity |
senderEntity()
Returns a
InboxEntity.SenderEntity object, which provides information about the message
sender, including name, title, and badge ID, among others. |
static java.lang.String |
toJsonString(InboxEntity inboxEntity)
Returns a JSON String of an
InboxEntity object. |
abstract InboxEntity |
withOption(java.lang.String option)
Constructor for a
InboxEntity object with the option set. |
public static final int INVALID_NOTIFICATION_ID
public static final int INVALID_OPTION_ID
public static java.lang.String toJsonString(InboxEntity inboxEntity)
InboxEntity object.inboxEntity - See InboxEntityInboxEntity object.public static InboxEntity fromJsonString(java.lang.String jsonString)
InboxEntity object after parsing a JSON string.jsonString - the JSON string of the InboxEntity objectInboxEntity object parsed from a JSON string.public abstract int notificationId()
Object.hashCode() and Object.equals(Object) implementations.INVALID_NOTIFICATION_ID = Integer.MIN_VALUEpublic abstract int badgeId()
public abstract long createdTime()
public abstract long repliedTime()
public abstract java.lang.String message()
@Nullable public abstract java.util.List<java.lang.String> optionList()
List of Strings of options. Will be null for generic messages.List of Strings of options.@Nullable public abstract java.lang.String option()
@Nullable public abstract InboxEntity.SenderEntity senderEntity()
InboxEntity.SenderEntity object, which provides information about the message
sender, including name, title, and badge ID, among others.InboxEntity.SenderEntity object.public abstract InboxEntity withOption(java.lang.String option)
InboxEntity object with the option set.option - the chosen optionInboxEntity object with the option set.