Module it.auties.whatsappweb4j
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
ConstructorDescriptionAppVersionResponse
(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion) Creates an instance of aAppVersionResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionbeta()
Returns the value of thebeta
record component.boolean
broken()
Returns the value of thebroken
record component.Returns the value of thecurrentVersion
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theoutdatedHard
record component.boolean
Returns the value of theoutdatedSoft
record component.long
Returns the value of theoutdatedUpdateTime
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AppVersionResponse
public AppVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion) Creates an instance of aAppVersionResponse
record class.- Parameters:
broken
- the value for thebroken
record componentoutdatedSoft
- the value for theoutdatedSoft
record componentoutdatedHard
- the value for theoutdatedHard
record componentoutdatedUpdateTime
- the value for theoutdatedUpdateTime
record componentbeta
- the value for thebeta
record componentcurrentVersion
- the value for thecurrentVersion
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
broken
public boolean broken()Returns the value of thebroken
record component.- Returns:
- the value of the
broken
record component
-
outdatedSoft
public boolean outdatedSoft()Returns the value of theoutdatedSoft
record component.- Returns:
- the value of the
outdatedSoft
record component
-
outdatedHard
public boolean outdatedHard()Returns the value of theoutdatedHard
record component.- Returns:
- the value of the
outdatedHard
record component
-
outdatedUpdateTime
public long outdatedUpdateTime()Returns the value of theoutdatedUpdateTime
record component.- Returns:
- the value of the
outdatedUpdateTime
record component
-
beta
Returns the value of thebeta
record component.- Returns:
- the value of the
beta
record component
-
currentVersion
Returns the value of thecurrentVersion
record component.- Returns:
- the value of the
currentVersion
record component
-