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 Object implements ExtensionElement
A OMEMO device list update containing the IDs of all active devices of a contact.
-
-
Constructor Summary
Constructors Constructor Description OmemoDeviceListElement(Set<Integer> deviceIds)
OmemoDeviceListElement(OmemoCachedDeviceList cachedList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Integer>
copyDeviceIds()
Set<Integer>
getDeviceIds()
String
getElementName()
Returns the root element name.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 String DEVICE
- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
LIST
public static final String LIST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OmemoDeviceListElement
public OmemoDeviceListElement(Set<Integer> deviceIds)
-
OmemoDeviceListElement
public OmemoDeviceListElement(OmemoCachedDeviceList cachedList)
-
-
Method Detail
-
getDeviceIds
public Set<Integer> getDeviceIds()
-
copyDeviceIds
public Set<Integer> copyDeviceIds()
-
getElementName
public 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)
-
-