Class Overview
Send a message to a Conversation and handle activity receipts.
The following code example shows how to send a text message to a Conversation:
conversation.sendText("text", new RequestHandler() {
@Override
public void onSuccess(Event text) {
}
@Override
public void onError(NexmoAPIError error) {
}
});
Events that are sent by other members can be marked as seen:
text.markAsSeen( new MarkedAsSeenListener() {
@Override
public void onMarkedAsSeen(Conversation conversation) {
}
@Override
public void onError(NexmoAPIError error) {
}
});
Summary
|
[Expand]
Inherited Constants |
From interface
android.os.Parcelable
| int |
CONTENTS_FILE_DESCRIPTOR |
|
| int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
| Protected Constructors |
|
|
Text()
|
|
|
Text(String text)
|
|
|
Text(String text, String id, Date timestamp)
|
|
|
Text(String text, String id, Date timestamp, Member member)
|
|
|
Text(String text, String id, Date timestamp, Member member, Conversation conversation)
|
|
|
Text(String text, String id, Date timestamp, Member member, Date deletedTimestamp)
|
|
|
Text(String text, String id, Date timestamp, Member member, Date deletedTimestamp, Conversation conversation)
|
|
|
Text(String text, String id, Date timestamp, Member member, Date deletedTimestamp, Collection<SeenReceipt> seenReceiptList, Collection<DeliveredReceipt> deliveredReceiptList)
|
|
|
Text(String text, String id, Date timestamp, Member member, Conversation conversation, Date deletedTimestamp, Collection<SeenReceipt> seenReceiptList, Collection<DeliveredReceipt> deliveredReceiptList)
|
|
|
Text(Text message)
|
|
|
Text(Parcel in)
|
|
[Expand]
Inherited Methods |
From class
com.nexmo.sdk.conversation.client.Event
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
|
abstract
int
|
describeContents()
|
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
public
static
final
Creator<Text>
CREATOR
Public Constructors
Protected Constructors
protected
Text
(String text)
protected
Text
(String text, String id, Date timestamp)
protected
Text
(String text, String id, Date timestamp, Member member)
protected
Text
(String text, String id, Date timestamp, Member member, Conversation conversation)
protected
Text
(String text, String id, Date timestamp, Member member, Date deletedTimestamp)
protected
Text
(String text, String id, Date timestamp, Member member, Date deletedTimestamp, Conversation conversation)
protected
Text
(String text, String id, Date timestamp, Member member, Date deletedTimestamp, Collection<SeenReceipt> seenReceiptList, Collection<DeliveredReceipt> deliveredReceiptList)
protected
Text
(Text message)
protected
Text
(Parcel in)
Public Methods
public
int
describeContents
()
public
boolean
equals
(Object o)
public
static
Text
fromPush
(String senderId, String eventId, JSONObject messageObject)
public
String
getText
()
Get the text of this event. For images text is not provided.
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)