Enum Class DeliveryReceipt.Type

java.lang.Object
java.lang.Enum<DeliveryReceipt.Type>
ch.threema.apitool.messages.DeliveryReceipt.Type
All Implemented Interfaces:
Serializable, Comparable<DeliveryReceipt.Type>, Constable
Enclosing class:
DeliveryReceipt

public static enum DeliveryReceipt.Type extends Enum<DeliveryReceipt.Type>
A delivery receipt type. The following types are defined: RECEIVED: the message has been received and decrypted on the recipient's device READ: the message has been shown to the user in the chat view (note that this status can be disabled) USER_ACK: the user has explicitly acknowledged the message (usually by long-pressing it and choosing the "acknowledge" option) USER_DEC: the user has explicitly declined the message
  • Enum Constant Details

  • Method Details

    • values

      public static DeliveryReceipt.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DeliveryReceipt.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • get

      public static DeliveryReceipt.Type get(int code)