public class

MessageEntity

extends Object
java.lang.Object
   ↳ com.urbanairship.messagecenter.MessageEntity

Summary

Fields
public boolean deleted
public String expirationTimestamp
public String extra
protected int id
public String messageBodyUrl
public String messageId
public String messageReadUrl
public String messageUrl
public String rawMessageObject
public String timestamp
public String title
public boolean unread
public boolean unreadOrig
Public Constructors
MessageEntity(String messageId, String messageUrl, String messageBodyUrl, String messageReadUrl, String title, String extra, boolean unread, boolean unreadOrig, boolean deleted, String timestamp, String rawMessageObject, String expirationTimestamp)
Public Methods
String getMessageBodyUrl()
String getMessageId()
boolean isDeleted()
boolean isExpired()
Protected Methods
Message createMessageFromEntity(MessageEntity entity)
static MessageEntity createMessageFromPayload(String messageId, JsonValue messagePayload)
static List<MessageEntity> createMessagesFromPayload(List<String> messageIds, List<JsonValue> messagePayloads)
JsonValue getMessageReporting()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public boolean deleted

public String expirationTimestamp

public String extra

protected int id

public String messageBodyUrl

public String messageId

public String messageReadUrl

public String messageUrl

public String rawMessageObject

public String timestamp

public String title

public boolean unread

public boolean unreadOrig

Public Constructors

public MessageEntity (String messageId, String messageUrl, String messageBodyUrl, String messageReadUrl, String title, String extra, boolean unread, boolean unreadOrig, boolean deleted, String timestamp, String rawMessageObject, String expirationTimestamp)

Public Methods

public String getMessageBodyUrl ()

public String getMessageId ()

public boolean isDeleted ()

public boolean isExpired ()

Protected Methods

protected Message createMessageFromEntity (MessageEntity entity)

protected static MessageEntity createMessageFromPayload (String messageId, JsonValue messagePayload)

protected static List<MessageEntity> createMessagesFromPayload (List<String> messageIds, List<JsonValue> messagePayloads)

protected JsonValue getMessageReporting ()