Record Class WebVersionResponse

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.response.WebVersionResponse

public record WebVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The field for the beta record component.
    private final boolean
    The field for the broken record component.
    private final String
    The field for the currentVersion record component.
    private final boolean
    The field for the outdatedHard record component.
    private final boolean
    The field for the outdatedSoft record component.
    private final long
    The field for the outdatedUpdateTime record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion)
    Creates an instance of a WebVersionResponse record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the beta record component.
    boolean
    Returns the value of the broken record component.
    Returns the value of the currentVersion record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the outdatedHard record component.
    boolean
    Returns the value of the outdatedSoft record component.
    long
    Returns the value of the outdatedUpdateTime record component.
    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

    • broken

      private final boolean broken
      The field for the broken record component.
    • outdatedSoft

      private final boolean outdatedSoft
      The field for the outdatedSoft record component.
    • outdatedHard

      private final boolean outdatedHard
      The field for the outdatedHard record component.
    • outdatedUpdateTime

      private final long outdatedUpdateTime
      The field for the outdatedUpdateTime record component.
    • beta

      private final String beta
      The field for the beta record component.
    • currentVersion

      private final String currentVersion
      The field for the currentVersion record component.
  • Constructor Details

    • WebVersionResponse

      public WebVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion)
      Creates an instance of a WebVersionResponse record class.
      Parameters:
      broken - the value for the broken record component
      outdatedSoft - the value for the outdatedSoft record component
      outdatedHard - the value for the outdatedHard record component
      outdatedUpdateTime - the value for the outdatedUpdateTime record component
      beta - the value for the beta record component
      currentVersion - the value for the currentVersion record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • broken

      public boolean broken()
      Returns the value of the broken record component.
      Returns:
      the value of the broken record component
    • outdatedSoft

      public boolean outdatedSoft()
      Returns the value of the outdatedSoft record component.
      Returns:
      the value of the outdatedSoft record component
    • outdatedHard

      public boolean outdatedHard()
      Returns the value of the outdatedHard record component.
      Returns:
      the value of the outdatedHard record component
    • outdatedUpdateTime

      public long outdatedUpdateTime()
      Returns the value of the outdatedUpdateTime record component.
      Returns:
      the value of the outdatedUpdateTime record component
    • beta

      public String beta()
      Returns the value of the beta record component.
      Returns:
      the value of the beta record component
    • currentVersion

      public String currentVersion()
      Returns the value of the currentVersion record component.
      Returns:
      the value of the currentVersion record component