public class Presence extends Stanza
| Modifier and Type | Class and Description |
|---|---|
static class |
Presence.PresenceStatus |
static class |
Presence.PresenceType |
Stanza.StanzaError| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR |
static String |
SHOW |
static String |
STATUS |
| Constructor and Description |
|---|
Presence() |
Presence(boolean initialPresence) |
Presence(Element element) |
| Modifier and Type | Method and Description |
|---|---|
ChatRoom |
getChatRoom() |
static Presence |
getInitialPresencePacket() |
String |
getMood() |
String |
getPhotoSHA1Hash() |
Presence.PresenceStatus |
getStatus() |
Presence.PresenceType |
getType() |
boolean |
isInitialPresence() |
boolean |
isMuc() |
boolean |
isPhotoUpdate() |
boolean |
isVCardUpdate() |
void |
setChatRoom(ChatRoom chatRoom) |
void |
setInitialPresence(boolean initialPresence) |
void |
setMood(String mood) |
void |
setMuc(boolean muc) |
void |
setPhotoSHA1Hash(String photoSHA1Hash) |
void |
setPhotoUpdate(boolean isPhotoUpdate) |
void |
setStatus(Presence.PresenceStatus status) |
void |
setType(Presence.PresenceType type) |
void |
setVCardUpdate(boolean isVCardUpdate) |
String |
xml()
Generate XML String out of the this entity.
|
getCreateTime, getError, getFrom, getId, getLang, getTo, getXmlns, isMessage, isStanza, setCreateTime, setError, setFrom, setId, setLang, setTo, setXmlnspublic static final String SHOW
public static final String STATUS
public static final String ERROR
public static Presence getInitialPresencePacket()
public Presence.PresenceType getType()
public void setType(Presence.PresenceType type)
public Presence.PresenceStatus getStatus()
public void setStatus(Presence.PresenceStatus status)
public String getMood()
public void setMood(String mood)
public ChatRoom getChatRoom()
public void setChatRoom(ChatRoom chatRoom)
public boolean isMuc()
public void setMuc(boolean muc)
public boolean isInitialPresence()
public void setInitialPresence(boolean initialPresence)
public String getPhotoSHA1Hash()
public void setPhotoSHA1Hash(String photoSHA1Hash)
public boolean isPhotoUpdate()
public void setPhotoUpdate(boolean isPhotoUpdate)
public boolean isVCardUpdate()
public void setVCardUpdate(boolean isVCardUpdate)
public String xml()
XMLConvertibleCopyright © 2019. All rights reserved.