Class OmemoDevice
- java.lang.Object
-
- org.jivesoftware.smackx.omemo.internal.OmemoDevice
-
public class OmemoDevice extends java.lang.Object
Class that combines a BareJid and a deviceId.
-
-
Constructor Summary
Constructors Constructor Description OmemoDevice(BareJid jid, int deviceId)Create a new OmemoDevice.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetBundleNodeName()Return the name of the PubSubLeafNodeof this device.intgetDeviceId()Return the OMEMO device Id of the device.BareJidgetJid()Return the BareJid of the device owner.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
OmemoDevice
public OmemoDevice(BareJid jid, int deviceId)
Create a new OmemoDevice.- Parameters:
jid- jid of the contactdeviceId- deviceId if the device.
-
-
Method Detail
-
getJid
public BareJid getJid()
Return the BareJid of the device owner.- Returns:
- bare JID of the device owner.
-
getDeviceId
public int getDeviceId()
Return the OMEMO device Id of the device.- Returns:
- OMEMO device ID.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getBundleNodeName
public java.lang.String getBundleNodeName()
Return the name of the PubSubLeafNodeof this device.- Returns:
- node name.
-
-