public class NexmoAttachmentEvent extends NexmoEvent
conversation.sendAttachment("my message", new NexmoRequestListener() {
@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 <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, getTimestamppublic 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 NexmoEventpublic boolean equals(java.lang.Object o)
equals in class NexmoEventpublic int hashCode()
hashCode in class NexmoEventpublic int describeContents()
describeContents in class NexmoEventpublic void writeToParcel(Parcel dest,
int flags)
writeToParcel in class NexmoEvent