Methods Summary |
---|
public int | describeContents()
return 0;
|
public java.lang.String | getBody()Gets the body of this message.
return mBody;
|
public java.util.Date | getDateTime()Gets the date time associated with this message. If it's a message sent
from this client, the date time is when the message is sent. If it's a
message received from other users, the date time is either when the
message was received or sent, depending on the underlying protocol.
if (mDate == null) {
return null;
}
return new Date(mDate.getTime());
|
public Address | getFrom()Gets the address where the message is sent from.
return mFrom;
|
public java.lang.String | getID()Gets an identifier of this message. May be null if the
underlying protocol doesn't support it.
return mId;
|
public Address | getTo()Gets the address where the message is sent to.
return mTo;
|
public void | setBody(java.lang.String body)
mBody = body;
|
public void | setDateTime(java.util.Date dateTime)
long time = dateTime.getTime();
if (mDate == null) {
mDate = new Date(time);
} else {
mDate.setTime(time);
}
|
public void | setFrom(Address from)
mFrom = from;
|
public void | setID(java.lang.String id)
mId = id;
|
public void | setTo(Address to)
mTo = to;
|
public java.lang.String | toString()
return "From: " + mFrom.getScreenName() + " To: " + mTo.getScreenName()
+ " " + mBody;
|
public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeString(mId);
AddressParcelHelper.writeToParcel(dest, mFrom);
AddressParcelHelper.writeToParcel(dest, mTo);
dest.writeString(mBody);
dest.writeLong(mDate == null ? -1 : mDate.getTime());
|