1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 16:22: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:
Matt Tucker 2003-10-23 20:21:32 +00:00 committed by mtucker
parent b6c7fa7150
commit d8c7f6164f

View file

@ -87,6 +87,16 @@ import org.xmlpull.v1.XmlPullParser;
*/
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;
/**
@ -113,11 +123,11 @@ public class GroupChatInvitation implements PacketExtension {
}
public String getElementName() {
return "x";
return ELEMENT_NAME;
}
public String getNamespace() {
return "jabber:x:conference";
return NAMESPACE;
}
public String toXML() {