Conversation.java :  » SMS » androideasysms » org » fireblade » easysms » Android Open Source

Android Open Source » SMS » androideasysms 
androideasysms » org » fireblade » easysms » Conversation.java
/**
 *  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;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.