/**
* Eclipse Public License 1.0
*/
package org.fireblade.easysms;
/**
* Simple pojo for a message thread without the parts
*/
public class Conversation {
/** contact id */
int contactId;
/** if thread (or a part) is read */
boolean isRead;
/** date of last modification */
long date;
/** thread id */
int threadId;
/** number of "remote" contact */
String address;
/** last type of message (in or out(?)) */
int type;
/** last message id */
int lastMessageId;
/** last body of a part in the thread */
String body;
/** the name of the contact */
String name;
/** status of the thread (?) */
int status;
/** count of message */
int count;
/** unread count */
int unreadCount;
/** if multiple contacts */
boolean uniqueContact;
public String toString() {
return "<br/>" + contactId + "," + isRead + "," + date + "," + threadId + "," + address + "," + type + ","
+ lastMessageId + "," + body;
}
}
|