java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.ClientHello
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record ClientHello(byte[] ephemeral, byte[] _static, byte[] payload)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientHello(byte[] ephemeral, byte[] _static, byte[] payload) Creates an instance of aClientHellorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]_static()Returns the value of the_staticrecord component.byte[]Returns the value of theephemeralrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]payload()Returns the value of thepayloadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ephemeral
private final byte[] ephemeralThe field for theephemeralrecord component. -
_static
private final byte[] _staticThe field for the_staticrecord component. -
payload
private final byte[] payloadThe field for thepayloadrecord component.
-
-
Constructor Details
-
ClientHello
public ClientHello(byte[] ephemeral, byte[] _static, byte[] payload) Creates an instance of aClientHellorecord class.- Parameters:
ephemeral- the value for theephemeralrecord component_static- the value for the_staticrecord componentpayload- the value for thepayloadrecord 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). -
ephemeral
public byte[] ephemeral()Returns the value of theephemeralrecord component.- Returns:
- the value of the
ephemeralrecord component
-
_static
public byte[] _static()Returns the value of the_staticrecord component.- Returns:
- the value of the
_staticrecord component
-
payload
public byte[] payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-