siuying.gm
Class GMConversation

java.lang.Object
  extended by siuying.gm.GMResponse
      extended by siuying.gm.GMConversation
All Implemented Interfaces:
java.io.Serializable

public class GMConversation
extends GMResponse
implements java.io.Serializable

Response from GMail that is a conversation Each conversation contains one title, one id, set of labels and entries(message)

Version:
0.3.4
Author:
siuying
See Also:
Serialized Form

Field Summary
 byte type
          Type of this response
 
Fields inherited from class siuying.gm.GMResponse
_gminfo, _gmlabel, _threads
 
Constructor Summary
GMConversation()
           
GMConversation(java.util.TreeMap gminfo, java.util.TreeMap gmlabel, java.util.ArrayList threads)
           
 
Method Summary
 void addEntries(GMConversationEntry entry)
           
 boolean equals(GMConversationEntry target)
           
 java.util.ArrayList getEntries()
           
 GMConversationEntry[] getEntriesArray()
           
 java.lang.String[] getEntriesId()
          get id of the entries, in String array
 java.lang.String getId()
           
 java.util.ArrayList getLabels()
           
 java.lang.String getTitle()
           
 int getTotal()
           
 byte getType()
           
 void setEntries(java.util.ArrayList entries)
           
 void setId(java.lang.String id)
           
 void setLabels(java.util.ArrayList labels)
           
 void setLabels(java.lang.String[] labels)
           
 void setTitle(java.lang.String title)
           
 void setTotal(int total)
           
 void setType(byte type)
           
 java.lang.String toString()
           
 
Methods inherited from class siuying.gm.GMResponse
getGminfo, getGmlabel, getGMThreads, setGminfo, setGmlabel, setThreads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public byte type
Type of this response

Constructor Detail

GMConversation

public GMConversation()

GMConversation

public GMConversation(java.util.TreeMap gminfo,
                      java.util.TreeMap gmlabel,
                      java.util.ArrayList threads)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class GMResponse

getEntriesId

public java.lang.String[] getEntriesId()
get id of the entries, in String array

Returns:
String[] ids of entries in the conversation
Since:
0.3.3.4

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

setTotal

public void setTotal(int total)

getTotal

public int getTotal()

getType

public byte getType()

setType

public void setType(byte type)

setLabels

public void setLabels(java.util.ArrayList labels)

setLabels

public void setLabels(java.lang.String[] labels)

getEntriesArray

public GMConversationEntry[] getEntriesArray()

getEntries

public java.util.ArrayList getEntries()

setEntries

public void setEntries(java.util.ArrayList entries)

addEntries

public void addEntries(GMConversationEntry entry)

getLabels

public java.util.ArrayList getLabels()

equals

public boolean equals(GMConversationEntry target)