Class DeliveryReceipt

java.lang.Object
org.jivesoftware.smackx.receipts.DeliveryReceipt
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

public class DeliveryReceipt extends Object implements org.jivesoftware.smack.packet.ExtensionElement
Represents a message delivery receipt entry as specified by Message Delivery Receipts.
  • Field Details

  • Constructor Details

    • DeliveryReceipt

      public DeliveryReceipt(String id)
  • Method Details

    • getId

      public String getId()
      Get the id of the message that has been delivered.
      Returns:
      id of the delivered message or null.
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element
    • getFrom

      @Deprecated public static DeliveryReceipt getFrom(org.jivesoftware.smack.packet.Message p)
      Deprecated.
      use from(Message) instead
      Get the DeliveryReceipt extension of the packet, if any.
      Parameters:
      p - the packet
      Returns:
      the DeliveryReceipt extension or null
    • from

      public static DeliveryReceipt from(org.jivesoftware.smack.packet.Message message)
      Get the DeliveryReceipt extension of the message, if any.
      Parameters:
      message - the message.
      Returns:
      the DeliveryReceipt extension or null