| java.lang.Object | |
| ↳ | com.nexmo.sdk.conversation.client.Event |
Known Direct Subclasses
|
Event is a foundation for different types of messages
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected Conversation | conversation | ||||||||||
| protected Date | deletedTimestamp | ||||||||||
| protected Set<DeliveredReceipt> | deliveredReceipts | ||||||||||
| protected String | id | ||||||||||
| protected Member | member | ||||||||||
| protected Set<SeenReceipt> | seenReceiptList | ||||||||||
| protected Date | timestamp | ||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Event() | |||||||||||
| Event(String id, Date timestamp, Date deletedTimestamp) | |||||||||||
| Event(Parcel parcel) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
delete(RequestHandler<Void> eventDeleteListener)
Delete a message.
| ||||||||||
| int | describeContents() | ||||||||||
| boolean | equals(Object o) | ||||||||||
| static Event | fromCursor(Cursor cursor, Conversation conversation) | ||||||||||
| static Event | fromJson(Conversation conversation, JSONObject messageObject) | ||||||||||
| Conversation |
getConversation()
Get the parent conversation of this event.
| ||||||||||
| Date |
getDeletedTimestamp()
Get the delete timestamp of this message,
if message was deleted already, otherwise is NULL.
| ||||||||||
| Collection<DeliveredReceipt> |
getDeliveredReceipts()
Get the list of delivered receipts for this event.
| ||||||||||
| String |
getId()
Get the event id of this message.
| ||||||||||
| Member |
getMember()
Get the sender of this message.
| ||||||||||
| Collection<SeenReceipt> |
getSeenReceipts()
Get the list of seen receipts for this event.
| ||||||||||
| Date |
getTimestamp()
Get the timestamp at which this message was received.
| ||||||||||
| abstract EventType | getType() | ||||||||||
| int | hashCode() | ||||||||||
| void |
markAsSeen(RequestHandler<SeenReceipt> listener)
Marks a message event as seen.
| ||||||||||
| void | writeToParcel(Parcel dest, int flags) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Delete a message.
| eventDeleteListener | The listener in charge of dispatching the completion result. |
|---|
| JSONException |
|---|
Get the parent conversation of this event.
Get the delete timestamp of this message, if message was deleted already, otherwise is NULL.
Get the list of delivered receipts for this event.
Get the event id of this message.
Get the sender of this message.
Get the list of seen receipts for this event.
Search the list for certain getMember() if needed.
Get the timestamp at which this message was received.
Marks a message event as seen.
Flag an Event as seen by the current member.
Event cannot be un-seen.
| listener | The listener in charge of dispatching the completion result. |
|---|