Class MUCInitialPresence.History
java.lang.Object
org.jivesoftware.smackx.muc.packet.MUCInitialPresence.History
- All Implemented Interfaces:
Element
,NamedElement
- Enclosing class:
- MUCInitialPresence
The History class controls the number of characters or messages to receive
when entering a room.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.int
Returns the total number of characters to receive in the history.int
Returns the total number of messages to receive in the history.int
Returns the number of seconds to use to filter the messages received during that time.getSince()
Returns the since date to use to filter the messages received during that time.toXML
(XmlEnvironment enclosingNamespace)
-
Field Details
-
ELEMENT
- See Also:
-
-
Constructor Details
-
History
-
-
Method Details
-
getMaxChars
Returns the total number of characters to receive in the history.- Returns:
- total number of characters to receive in the history.
-
getMaxStanzas
Returns the total number of messages to receive in the history.- Returns:
- the total number of messages to receive in the history.
-
getSeconds
Returns the number of seconds to use to filter the messages received during that time. In other words, only the messages received in the last "X" seconds will be included in the history.- Returns:
- the number of seconds to use to filter the messages received during that time.
-
getSince
Returns the since date to use to filter the messages received during that time. In other words, only the messages received since the datetime specified will be included in the history.- Returns:
- the since date to use to filter the messages received during that time.
-
toXML
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-