Class OmemoDevice


  • public class OmemoDevice
    extends java.lang.Object
    Class that combines a BareJid and a deviceId.
    • Constructor Summary

      Constructors 
      Constructor Description
      OmemoDevice​(org.jxmpp.jid.BareJid jid, int deviceId)
      Create a new OmemoDevice.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      java.lang.String getBundleNodeName()
      Return the name of the PubSub LeafNode of this device.
      int getDeviceId()
      Return the OMEMO device Id of the device.
      org.jxmpp.jid.BareJid getJid()
      Return the BareJid of the device owner.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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