public class NexmoTextEvent extends NexmoEvent
conversation.sendText("my message", new NexmoRequestListenerText events that are sent by other members can be marked as seen:() { @Override public void onSuccess(Text text) { } @Override public void onError(NexmoAPIError error) { } });
text.markAsSeen(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 a text event.
|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getText()
Get the text payload of this event.
|
int |
hashCode() |
void |
markAsSeen(com.nexmo.client.request_listener.NexmoRequestListener listener)
Mark a Text 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 java.lang.String getText()
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