Package org.jivesoftware.smack.packet
Interface PresenceView
-
- All Superinterfaces:
StanzaView,XmlLangElement
- All Known Implementing Classes:
Presence,PresenceBuilder
public interface PresenceView extends StanzaView
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Presence.ModegetMode()Returns the mode of the presence update.intgetPriority()Returns the priority of the presence.bytegetPriorityByte()Returns the priority of the presence.StringgetStatus()Returns the status message of the presence update, ornullif there is not a status.Presence.TypegetType()Returns the type of this presence stanza.-
Methods inherited from interface org.jivesoftware.smack.packet.StanzaView
getError, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getStanzaId, getTo, hasExtension, hasExtension, hasExtension
-
Methods inherited from interface org.jivesoftware.smack.packet.XmlLangElement
getLanguage
-
-
-
-
Method Detail
-
getType
Presence.Type getType()
Returns the type of this presence stanza.- Returns:
- the type of the presence stanza.
-
getStatus
String getStatus()
Returns the status message of the presence update, ornullif there is not a status. The status is free-form text describing a user's presence (i.e., "gone to lunch").- Returns:
- the status message.
-
getPriority
int getPriority()
Returns the priority of the presence.- Returns:
- the priority.
- See Also:
- RFC 6121 § 4.7.2.3. Priority Element
-
getPriorityByte
byte getPriorityByte()
Returns the priority of the presence.- Returns:
- the priority.
- See Also:
- RFC 6121 § 4.7.2.3. Priority Element
-
getMode
Presence.Mode getMode()
Returns the mode of the presence update.- Returns:
- the mode.
-
-