Parcelable
public class MessageItem extends Item
Modifier and Type | Class | Description |
---|---|---|
static class |
MessageItem.TimestampComparator |
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.ContentsFlags, Parcelable.Creator<T extends Object>, Parcelable.WriteFlags
Modifier and Type | Field | Description |
---|---|---|
static String |
CONTACT |
|
static String |
CONTENT |
|
static Parcelable.Creator<MessageItem> |
CREATOR |
|
static String |
TIMESTAMP |
|
static String |
TYPE |
|
static String |
TYPE_RECEIVED |
|
static String |
TYPE_SENT |
TIME_CREATED
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method | Description |
---|---|---|
String |
getContact() |
Get the contact (name or phone number) of the message
|
String |
getContent() |
Get the message content.
|
long |
getTimestamp() |
Get the timestamp of when the message is sent or received.
|
String |
getType() |
Get the message type
|
containsField, describeContents, getAsBoolean, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getBundle, getValueByField, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setParcelableArrayListFieldValue, setStringArrayListFieldValue, toDebugString, writeToParcel
public static final String CONTENT
public static final String CONTACT
public static final String TIMESTAMP
public static final String TYPE
public static final String TYPE_RECEIVED
public static final String TYPE_SENT
public static final Parcelable.Creator<MessageItem> CREATOR
public String getType()
public String getContent()
public String getContact()
public long getTimestamp()