java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.WebInfo
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record WebInfo(String refToken, String version, WebPayload webPayload, WebInfo.Platform webSubPlatform)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for therefTokenrecord component.private final StringThe field for theversionrecord component.private final WebPayloadThe field for thewebPayloadrecord component.private final WebInfo.PlatformThe field for thewebSubPlatformrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWebInfo(String refToken, String version, WebPayload webPayload, WebInfo.Platform webSubPlatform) Creates an instance of aWebInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.refToken()Returns the value of therefTokenrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.Returns the value of thewebPayloadrecord component.Returns the value of thewebSubPlatformrecord component.
-
Field Details
-
refToken
The field for therefTokenrecord component. -
version
The field for theversionrecord component. -
webPayload
The field for thewebPayloadrecord component. -
webSubPlatform
The field for thewebSubPlatformrecord component.
-
-
Constructor Details
-
WebInfo
public WebInfo(String refToken, String version, WebPayload webPayload, WebInfo.Platform webSubPlatform) Creates an instance of aWebInforecord class.- Parameters:
refToken- the value for therefTokenrecord componentversion- the value for theversionrecord componentwebPayload- the value for thewebPayloadrecord componentwebSubPlatform- the value for thewebSubPlatformrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
refToken
Returns the value of therefTokenrecord component.- Returns:
- the value of the
refTokenrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
webPayload
Returns the value of thewebPayloadrecord component.- Returns:
- the value of the
webPayloadrecord component
-
webSubPlatform
Returns the value of thewebSubPlatformrecord component.- Returns:
- the value of the
webSubPlatformrecord component
-