public class Affiliation
extends java.lang.Object
implements org.jivesoftware.smack.packet.PacketExtension
type
defines
the type of affiliation.
Affiliations are retrieved from the PubSubManager.getAffiliations()
method, which
gets affiliations for the calling user, based on the identity that is associated with
the XMPPConnection
.Modifier and Type | Class and Description |
---|---|
static class |
Affiliation.Type |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
node |
protected Affiliation.Type |
type |
Constructor and Description |
---|
Affiliation(java.lang.String nodeId,
Affiliation.Type affiliation)
Constructs an affiliation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getElementName() |
java.lang.String |
getNamespace() |
java.lang.String |
getNodeId() |
Affiliation.Type |
getType() |
java.lang.String |
toXML() |
protected java.lang.String node
protected Affiliation.Type type
public Affiliation(java.lang.String nodeId, Affiliation.Type affiliation)
nodeId
- The node the user is affiliated with.affiliation
- The type of affiliation.public java.lang.String getNodeId()
public Affiliation.Type getType()
public java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getNamespace()
getNamespace
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String toXML()
toXML
in interface org.jivesoftware.smack.packet.PacketExtension