Enum Class MessageStatus

java.lang.Object
java.lang.Enum<MessageStatus>
it.auties.whatsapp.model.message.model.MessageStatus
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufEnum, it.auties.protobuf.model.ProtobufObject, Serializable, Comparable<MessageStatus>, Constable

public enum MessageStatus extends Enum<MessageStatus> implements it.auties.protobuf.model.ProtobufEnum
The constants of this enumerated type describe the various types of status of a Message
  • Enum Constant Details

    • ERROR

      public static final MessageStatus ERROR
      Erroneous status(no ticks)
    • PENDING

      public static final MessageStatus PENDING
      Pending status(no ticks)
    • SERVER_ACK

      public static final MessageStatus SERVER_ACK
      Acknowledged by the server(one tick)
    • DELIVERED

      public static final MessageStatus DELIVERED
      Delivered(two ticks)
    • READ

      public static final MessageStatus READ
      Read(two blue ticks)
    • PLAYED

      public static final MessageStatus PLAYED
      Played(two blue ticks)
  • Field Details

    • index

      final int index
  • Constructor Details

    • MessageStatus

      private MessageStatus(int index)
  • Method Details

    • values

      public static MessageStatus[] 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 MessageStatus 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
    • of

      public static Optional<MessageStatus> of(String name)
    • index

      public int index()