public class MessageReceipt
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
MessageReceipt.ReceiptType  | 
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
RECEIPT_TYPE_DELIVERED  | 
static java.lang.String | 
RECEIPT_TYPE_READ  | 
| Constructor and Description | 
|---|
MessageReceipt()  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getDeliveredAt()
Get delivery timestamp of the message 
 | 
int | 
getMessageId()
Get id of the message 
 | 
long | 
getReadAt()
Get Timestamp of the when message was read at 
 | 
java.lang.String | 
getReceiptType()
Get receipt type of the message 
 | 
java.lang.String | 
getReceiverId()
Get id of the receiver 
 | 
java.lang.String | 
getReceivertype()
Get type of receiver 
 | 
User | 
getSender()
Get sender object 
 | 
long | 
getTimestamp()
Get message's sent at timestamp 
 | 
static java.util.List<MessageReceipt> | 
receiptsFromJSON(JSONArray receiptsArray,
                java.lang.String receiverId,
                java.lang.String receivertype,
                int messageId)  | 
void | 
setDeliveredAt(long deliveredAt)  | 
void | 
setMessageId(int messageId)  | 
void | 
setReadAt(long readAt)  | 
void | 
setReceiptType(java.lang.String receiptType)  | 
void | 
setReceiverId(java.lang.String receiverId)  | 
void | 
setReceivertype(java.lang.String receivertype)  | 
void | 
setSender(User sender)  | 
void | 
setTimestamp(long timestamp)  | 
java.lang.String | 
toString()  | 
public static final java.lang.String RECEIPT_TYPE_DELIVERED
public static final java.lang.String RECEIPT_TYPE_READ
public int getMessageId()
public void setMessageId(int messageId)
public User getSender()
User classUserpublic void setSender(User sender)
public java.lang.String getReceivertype()
CometChatConstants.ReceiverTypespublic void setReceivertype(java.lang.String receivertype)
public java.lang.String getReceiverId()
public void setReceiverId(java.lang.String receiverId)
public long getTimestamp()
public void setTimestamp(long timestamp)
public java.lang.String getReceiptType()
MessageReceipt.ReceiptTypepublic void setReceiptType(java.lang.String receiptType)
public long getDeliveredAt()
public void setDeliveredAt(long deliveredAt)
public long getReadAt()
public void setReadAt(long readAt)
public static java.util.List<MessageReceipt> receiptsFromJSON(JSONArray receiptsArray, java.lang.String receiverId, java.lang.String receivertype, int messageId) throws JSONException
JSONExceptionpublic java.lang.String toString()
toString in class java.lang.Object