Record Class AppVersionResponse

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.response.AppVersionResponse
All Implemented Interfaces:
ResponseWrapper

public record AppVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion) extends Record implements ResponseWrapper
  • Constructor Summary

    Constructors
    Constructor
    Description
    AppVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion)
    Creates an instance of a AppVersionResponse 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
  • Constructor Details

    • AppVersionResponse

      public AppVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion)
      Creates an instance of a AppVersionResponse 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