mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +01:00
Element name and namespace available statically.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2158 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
b6c7fa7150
commit
d8c7f6164f
1 changed files with 12 additions and 2 deletions
|
@ -87,6 +87,16 @@ import org.xmlpull.v1.XmlPullParser;
|
||||||
*/
|
*/
|
||||||
public class GroupChatInvitation implements PacketExtension {
|
public class GroupChatInvitation implements PacketExtension {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Element name of the packet extension.
|
||||||
|
*/
|
||||||
|
public static final String ELEMENT_NAME = "x";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Namespace of the packet extension.
|
||||||
|
*/
|
||||||
|
public static final String NAMESPACE = "jabber:x:conference";
|
||||||
|
|
||||||
private String roomAddress;
|
private String roomAddress;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -113,11 +123,11 @@ public class GroupChatInvitation implements PacketExtension {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getElementName() {
|
public String getElementName() {
|
||||||
return "x";
|
return ELEMENT_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNamespace() {
|
public String getNamespace() {
|
||||||
return "jabber:x:conference";
|
return NAMESPACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toXML() {
|
public String toXML() {
|
||||||
|
|
Loading…
Reference in a new issue