public class MailboxIQ
extends org.jivesoftware.smack.packet.IQ
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The name of the element that Google use to transport new mail
notifications.
|
static java.lang.String |
NAMESPACE
The name space for new mail notification packets.
|
Constructor and Description |
---|
MailboxIQ() |
Modifier and Type | Method and Description |
---|---|
void |
addThread(MailThreadInfo threadInfo)
Adds a thread info element to the list of threads that this
MailboxIQ is referring to.
|
java.lang.String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if
there isn't one.
|
long |
getDate()
Returns the date of the most recent unread mail content on the mail
server, in milliseconds since the UNIX epoch.
|
long |
getResultTime()
Returns the time when these results were generated, in milliseconds
since the UNIX epoch.
|
int |
getThreadCount()
Returns the number of threads that are currently in this
MailboxIQ.
|
int |
getTotalMatched()
Returns the number of unread mail messages
|
java.lang.String |
getUrl()
Returns the http URL of the mail server containing the messages that
this IQ refers to.
|
boolean |
isTotalEstimate()
Determines whether the total of unread mail messages is an estimate or
not.
|
void |
setDate(long date)
Sets the date of the most recent unread mail content on the mail server,
in milliseconds since the UNIX epoch.
|
void |
setResultTime(long l)
Sets the time these results were generated, in milliseconds since the
UNIX epoch.
|
void |
setTotalEstimate(boolean totalEstimate)
Specifies whether the total number of unread mail messages contained in
this object is an estimate or a precise count.
|
void |
setTotalMatched(int totalMatched)
Specifies the number of unread mail messages.
|
void |
setUrl(java.lang.String url)
Specifies an HTTP URL of the mail server that contains the messages
indicated in this Mailbox IQ.
|
java.util.Iterator<MailThreadInfo> |
threads()
Returns the list of threads that this MailboxIQ refers to.
|
createErrorResponse, createResultIQ, getType, setType, toXML
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public void setDate(long date)
date
- the date longpublic long getDate()
public long getResultTime()
public void setResultTime(long l)
l
- the resultTime longpublic int getTotalMatched()
public void setTotalMatched(int totalMatched)
totalMatched
- the number of matched mail messagespublic boolean isTotalEstimate()
public void setTotalEstimate(boolean totalEstimate)
totalEstimate
- true if the number of total messages here
is an estimate and false otherwise.public java.lang.String getChildElementXML()
getChildElementXML
in class org.jivesoftware.smack.packet.IQ
public void setUrl(java.lang.String url)
url
- the http URL where users could check the messages that this
IQ refers to.public java.lang.String getUrl()
public void addThread(MailThreadInfo threadInfo)
threadInfo
- the new thread info instance that we should add to the
thread list.public int getThreadCount()
public java.util.Iterator<MailThreadInfo> threads()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.