Class OmemoDevice

java.lang.Object
org.jivesoftware.smackx.omemo.internal.OmemoDevice

public class OmemoDevice extends Object
Class that combines a BareJid and a deviceId.
  • Constructor Details

    • OmemoDevice

      public OmemoDevice(org.jxmpp.jid.BareJid jid, int deviceId)
      Create a new OmemoDevice.
      Parameters:
      jid - jid of the contact
      deviceId - deviceId if the device.
  • Method Details

    • getJid

      public org.jxmpp.jid.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 String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getBundleNodeName

      public String getBundleNodeName()
      Return the name of the PubSub LeafNode of this device.
      Returns:
      node name.