Enum Class ProtocolMessage.Type

java.lang.Object
java.lang.Enum<ProtocolMessage.Type>
it.auties.whatsapp.model.message.server.ProtocolMessage.Type
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufEnum, it.auties.protobuf.model.ProtobufObject, Serializable, Comparable<ProtocolMessage.Type>, Constable
Enclosing class:
ProtocolMessage

public static enum ProtocolMessage.Type extends Enum<ProtocolMessage.Type> implements it.auties.protobuf.model.ProtobufEnum
The constants of this enumerated type describe the various type of data that a ProtocolMessage can wrap
  • Enum Constant Details

    • REVOKE

      public static final ProtocolMessage.Type REVOKE
      A ProtocolMessage that notifies that a message was deleted for everyone in a chat
    • EPHEMERAL_SETTING

      public static final ProtocolMessage.Type EPHEMERAL_SETTING
      A ProtocolMessage that notifies that the ephemeral settings in a chat have changed
    • EPHEMERAL_SYNC_RESPONSE

      public static final ProtocolMessage.Type EPHEMERAL_SYNC_RESPONSE
      A ProtocolMessage that notifies that a dataSync in an ephemeral chat
    • HISTORY_SYNC_NOTIFICATION

      public static final ProtocolMessage.Type HISTORY_SYNC_NOTIFICATION
      A ProtocolMessage that notifies that a history dataSync in any chat
    • APP_STATE_SYNC_KEY_SHARE

      public static final ProtocolMessage.Type APP_STATE_SYNC_KEY_SHARE
      App state dataSync key share
    • APP_STATE_SYNC_KEY_REQUEST

      public static final ProtocolMessage.Type APP_STATE_SYNC_KEY_REQUEST
      App state dataSync key request
    • MESSAGE_BACK_FILL_REQUEST

      public static final ProtocolMessage.Type MESSAGE_BACK_FILL_REQUEST
      Message back-fill request
    • INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC

      public static final ProtocolMessage.Type INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC
      Initial security notification setting dataSync
    • EXCEPTION_NOTIFICATION

      public static final ProtocolMessage.Type EXCEPTION_NOTIFICATION
      App state fatal exception notification
    • SHARE_PHONE_NUMBER

      public static final ProtocolMessage.Type SHARE_PHONE_NUMBER
      Share phone number
    • MESSAGE_EDIT

      public static final ProtocolMessage.Type MESSAGE_EDIT
      Message edit
  • Field Details

    • index

      final int index
  • Constructor Details

    • Type

      private Type(int index)
  • Method Details

    • values

      public static ProtocolMessage.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 ProtocolMessage.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
    • index

      public int index()