public class NexmoImageRepresentation
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
Represents a custom event, dispatched into NexmoMessageEventListener
.
Retrieve medium image URL of the received attachment:
conversation.addMessageEventListener(new NexmoMessageEventListener() { @Override public void onTextEvent(@NonNull NexmoTextEvent textEvent) {} @Override public void onAttachmentEvent(@NonNull NexmoAttachmentEvent attachmentEvent) { Log.d("onAttachmentEvent", "NexmoAttachmentEvent received"); // image retrieval attachmentEvent.getMedium() ; } @Override public void onEventDeleted(@NonNull NexmoDeletedEvent deletedEvent) {} @Override public void onSeenReceipt(@NonNull NexmoSeenEvent seenEvent) {} @Override public void onDeliveredReceipt(@NonNull NexmoDeliveredEvent deliveredEvent) {} @Override public void onTypingEvent(@NonNull NexmoTypingEvent typingEvent) {} });
Modifier and Type | Class and Description |
---|---|
static class |
NexmoImageRepresentation.TYPE
Enum representing the image size.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<NexmoImageRepresentation> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
Gets the id.
|
long |
getSize()
Gets the size.
|
NexmoImageRepresentation.TYPE |
getType()
Gets the type.
|
java.lang.String |
getUrl()
Gets the image URL.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<NexmoImageRepresentation> CREATOR
public NexmoImageRepresentation.TYPE getType()
public java.lang.String getId()
public java.lang.String getUrl()
public long getSize()
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object