Class QuickReplyAction

java.lang.Object
it.auties.whatsapp.model.action.QuickReplyAction
All Implemented Interfaces:
it.auties.protobuf.base.ProtobufMessage, Action

public final class QuickReplyAction extends Object implements Action
A model clas that represents the addition or deletion of a quick reply
  • Constructor Details

    • QuickReplyAction

      public QuickReplyAction(String shortcut, String message, List<String> keywords, int count, boolean deleted)
  • Method Details

    • indexName

      public String indexName()
      The name of this action
      Specified by:
      indexName in interface Action
      Returns:
      a non-null string
    • builder

    • shortcut

      public String shortcut()
      The shortcut for this reply
    • message

      public String message()
      The full reply
    • keywords

      public List<String> keywords()
      The keywords for this reply
    • count

      public int count()
      The count for this reply
    • deleted

      public boolean deleted()
      Whether this quick reply was deleted
    • shortcut

      public QuickReplyAction shortcut(String shortcut)
      The shortcut for this reply
      Returns:
      this.
    • message

      public QuickReplyAction message(String message)
      The full reply
      Returns:
      this.
    • keywords

      public QuickReplyAction keywords(List<String> keywords)
      The keywords for this reply
      Returns:
      this.
    • count

      public QuickReplyAction count(int count)
      The count for this reply
      Returns:
      this.
    • deleted

      public QuickReplyAction deleted(boolean deleted)
      Whether this quick reply was deleted
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object