Class OmemoDeviceListElement
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.element.OmemoDeviceListElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
OmemoDeviceListElement_VAxolotl
public abstract class OmemoDeviceListElement extends java.lang.Object implements ExtensionElement
A OMEMO device list update containing the IDs of all active devices of a contact.
-
-
Constructor Summary
Constructors Constructor Description OmemoDeviceListElement(java.util.Set<java.lang.Integer> deviceIds)
OmemoDeviceListElement(OmemoCachedDeviceList cachedList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.Integer>
copyDeviceIds()
java.util.Set<java.lang.Integer>
getDeviceIds()
java.lang.String
getElementName()
Returns the root element name.java.lang.String
toString()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getNamespace, getQName
-
-
-
-
Field Detail
-
DEVICE
public static final java.lang.String DEVICE
- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
LIST
public static final java.lang.String LIST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OmemoDeviceListElement
public OmemoDeviceListElement(java.util.Set<java.lang.Integer> deviceIds)
-
OmemoDeviceListElement
public OmemoDeviceListElement(OmemoCachedDeviceList cachedList)
-
-
Method Detail
-
getDeviceIds
public java.util.Set<java.lang.Integer> getDeviceIds()
-
copyDeviceIds
public java.util.Set<java.lang.Integer> copyDeviceIds()
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
public final XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-