public class NexmoAttachmentEvent extends NexmoEvent
conversation.sendAttachment("my message", new NexmoRequestListenerAttachment events that are sent by other members can be marked as seen:() { @Override public void onSuccess(NexmoAttachmentEvent image) { } @Override public void onError(NexmoAPIError error) { } });
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 <any> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
void |
delete(com.nexmo.client.request_listener.NexmoRequestListener listener)
Delete an Attachment event.
|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
NexmoImageRepresentation |
getMedium() |
NexmoImageRepresentation |
getOriginal() |
NexmoImageRepresentation |
getThumbnail() |
int |
hashCode() |
void |
markAsSeen(com.nexmo.client.request_listener.NexmoRequestListener listener)
Mark an Attachment event as seen.
|
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
getEventTypeFromCoreEvent, getId, getMember, getTimestamp
public void delete(com.nexmo.client.request_listener.NexmoRequestListener listener)
listener
- The request completion listener.public void markAsSeen(com.nexmo.client.request_listener.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 class NexmoEvent
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class NexmoEvent