java.lang.Object
java.lang.Record
it.auties.whatsapp.model.response.WebVersionResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thebetarecord component.private final booleanThe field for thebrokenrecord component.private final StringThe field for thecurrentVersionrecord component.private final booleanThe field for theoutdatedHardrecord component.private final booleanThe field for theoutdatedSoftrecord component.private final longThe field for theoutdatedUpdateTimerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWebVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion) Creates an instance of aWebVersionResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbeta()Returns the value of thebetarecord component.booleanbroken()Returns the value of thebrokenrecord component.Returns the value of thecurrentVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theoutdatedHardrecord component.booleanReturns the value of theoutdatedSoftrecord component.longReturns the value of theoutdatedUpdateTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
broken
private final boolean brokenThe field for thebrokenrecord component. -
outdatedSoft
private final boolean outdatedSoftThe field for theoutdatedSoftrecord component. -
outdatedHard
private final boolean outdatedHardThe field for theoutdatedHardrecord component. -
outdatedUpdateTime
private final long outdatedUpdateTimeThe field for theoutdatedUpdateTimerecord component. -
beta
The field for thebetarecord component. -
currentVersion
The field for thecurrentVersionrecord component.
-
-
Constructor Details
-
WebVersionResponse
public WebVersionResponse(boolean broken, boolean outdatedSoft, boolean outdatedHard, long outdatedUpdateTime, String beta, String currentVersion) Creates an instance of aWebVersionResponserecord class.- Parameters:
broken- the value for thebrokenrecord componentoutdatedSoft- the value for theoutdatedSoftrecord componentoutdatedHard- the value for theoutdatedHardrecord componentoutdatedUpdateTime- the value for theoutdatedUpdateTimerecord componentbeta- the value for thebetarecord componentcurrentVersion- the value for thecurrentVersionrecord 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 thebrokenrecord component.- Returns:
- the value of the
brokenrecord component
-
outdatedSoft
public boolean outdatedSoft()Returns the value of theoutdatedSoftrecord component.- Returns:
- the value of the
outdatedSoftrecord component
-
outdatedHard
public boolean outdatedHard()Returns the value of theoutdatedHardrecord component.- Returns:
- the value of the
outdatedHardrecord component
-
outdatedUpdateTime
public long outdatedUpdateTime()Returns the value of theoutdatedUpdateTimerecord component.- Returns:
- the value of the
outdatedUpdateTimerecord component
-
beta
Returns the value of thebetarecord component.- Returns:
- the value of the
betarecord component
-
currentVersion
Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-