Class MUCUser.Status
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.MUCUser.Status
-
- All Implemented Interfaces:
Element
,NamedElement
- Enclosing class:
- MUCUser
public static final class MUCUser.Status extends Object implements NamedElement
Status code assists in presenting notification messages. The following link provides the list of existing error codes Multi-User Chat Status Codes.
-
-
Field Summary
Fields Modifier and Type Field Description static MUCUser.Status
BANNED_301
static String
ELEMENT
static MUCUser.Status
KICKED_307
static MUCUser.Status
NEW_NICKNAME_303
static MUCUser.Status
PRESENCE_TO_SELF_110
static MUCUser.Status
REMOVED_AFFIL_CHANGE_321
static MUCUser.Status
REMOVED_FOR_TECHNICAL_REASONS_333
static MUCUser.Status
ROOM_CREATED_201
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MUCUser.Status
create(Integer i)
static MUCUser.Status
create(String string)
boolean
equals(Object other)
int
getCode()
Returns the code that uniquely identifies the reason of the error.String
getElementName()
Returns the root element name.int
hashCode()
String
toString()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
PRESENCE_TO_SELF_110
public static final MUCUser.Status PRESENCE_TO_SELF_110
-
ROOM_CREATED_201
public static final MUCUser.Status ROOM_CREATED_201
-
BANNED_301
public static final MUCUser.Status BANNED_301
-
NEW_NICKNAME_303
public static final MUCUser.Status NEW_NICKNAME_303
-
KICKED_307
public static final MUCUser.Status KICKED_307
-
REMOVED_AFFIL_CHANGE_321
public static final MUCUser.Status REMOVED_AFFIL_CHANGE_321
-
REMOVED_FOR_TECHNICAL_REASONS_333
public static final MUCUser.Status REMOVED_FOR_TECHNICAL_REASONS_333
-
-
Method Detail
-
create
public static MUCUser.Status create(String string)
-
create
public static MUCUser.Status create(Integer i)
-
getCode
public int getCode()
Returns the code that uniquely identifies the reason of the error. The code assists in presenting notification messages.- Returns:
- the code that uniquely identifies the reason of the error.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
-