Record Class AutoDownloadSettings

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.setting.AutoDownloadSettings
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject, Setting

public record AutoDownloadSettings(boolean downloadImages, boolean downloadAudio, boolean downloadVideo, boolean downloadDocuments) extends Record implements Setting
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the downloadAudio record component.
    private final boolean
    The field for the downloadDocuments record component.
    private final boolean
    The field for the downloadImages record component.
    private final boolean
    The field for the downloadVideo record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AutoDownloadSettings(boolean downloadImages, boolean downloadAudio, boolean downloadVideo, boolean downloadDocuments)
    Creates an instance of a AutoDownloadSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the downloadAudio record component.
    boolean
    Returns the value of the downloadDocuments record component.
    boolean
    Returns the value of the downloadImages record component.
    boolean
    Returns the value of the downloadVideo record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • downloadImages

      private final boolean downloadImages
      The field for the downloadImages record component.
    • downloadAudio

      private final boolean downloadAudio
      The field for the downloadAudio record component.
    • downloadVideo

      private final boolean downloadVideo
      The field for the downloadVideo record component.
    • downloadDocuments

      private final boolean downloadDocuments
      The field for the downloadDocuments record component.
  • Constructor Details

    • AutoDownloadSettings

      public AutoDownloadSettings(boolean downloadImages, boolean downloadAudio, boolean downloadVideo, boolean downloadDocuments)
      Creates an instance of a AutoDownloadSettings record class.
      Parameters:
      downloadImages - the value for the downloadImages record component
      downloadAudio - the value for the downloadAudio record component
      downloadVideo - the value for the downloadVideo record component
      downloadDocuments - the value for the downloadDocuments record component
  • Method Details

    • indexName

      public String indexName()
      Specified by:
      indexName in interface Setting
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • downloadImages

      public boolean downloadImages()
      Returns the value of the downloadImages record component.
      Returns:
      the value of the downloadImages record component
    • downloadAudio

      public boolean downloadAudio()
      Returns the value of the downloadAudio record component.
      Returns:
      the value of the downloadAudio record component
    • downloadVideo

      public boolean downloadVideo()
      Returns the value of the downloadVideo record component.
      Returns:
      the value of the downloadVideo record component
    • downloadDocuments

      public boolean downloadDocuments()
      Returns the value of the downloadDocuments record component.
      Returns:
      the value of the downloadDocuments record component