java.lang.Object
java.lang.Record
it.auties.whatsapp.model.action.PrimaryVersionAction
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
,Action
A model class that contains the main Whatsapp version being used
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrimaryVersionAction
(String version) Creates an instance of aPrimaryVersionAction
record class. -
Method Summary
Modifier and TypeMethodDescriptionThe type of this actionint
The version of this actionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.The name of this actionfinal String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Field Details
-
version
The field for theversion
record component.
-
-
Constructor Details
-
PrimaryVersionAction
Creates an instance of aPrimaryVersionAction
record class.- Parameters:
version
- the value for theversion
record component
-
-
Method Details
-
indexName
The name of this action -
actionVersion
public int actionVersion()The version of this action- Specified by:
actionVersion
in interfaceAction
- Returns:
- a non-null string
-
actionType
The type of this action- Specified by:
actionType
in interfaceAction
- Returns:
- a non-null 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. -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-