public class NexmoAttachmentEvent extends NexmoEvent
conversation.sendAttachment("my message", new NexmoRequestListener<NexmoAttachmentEvent>() { @Override public void onSuccess(NexmoAttachmentEvent image) { } @Override public void onError(NexmoAPIError error) { } });Attachment events that are sent by other members can be marked as seen:
image.markAsSeen(new NexmoRequestListener() { @Override public void onSuccess() { } @Override public void onError(NexmoAPIError error) { } });Deleting image events:
image.delete(new NexmoRequestListener() { @Override public void onSuccess() { } @Override public void onError(NexmoAPIError error) { } });
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<NexmoAttachmentEvent> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
void |
delete(NexmoRequestListener listener)
Delete an Attachment event.
|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
NexmoImageRepresentation |
getMedium() |
NexmoImageRepresentation |
getOriginal() |
NexmoImageRepresentation |
getThumbnail() |
int |
hashCode() |
void |
markAsSeen(NexmoRequestListener listener)
Mark an Attachment event as seen.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getConversationId, getCreationDate, getEventType, getEventTypeFromCoreEvent, getFromMember, getId
public static final android.os.Parcelable.Creator<NexmoAttachmentEvent> CREATOR
public void delete(NexmoRequestListener listener)
listener
- The request completion listener.public void markAsSeen(NexmoRequestListener listener)
listener
- The request completion listener.public NexmoImageRepresentation getOriginal()
public NexmoImageRepresentation getMedium()
public NexmoImageRepresentation getThumbnail()
public java.lang.String toString()
toString
in class NexmoEvent
public boolean equals(java.lang.Object o)
equals
in class NexmoEvent
public int hashCode()
hashCode
in class NexmoEvent
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class NexmoEvent
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class NexmoEvent