java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.ServerHello
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record ServerHello(byte[] ephemeral, byte[] staticText, byte[] payload)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for theephemeralrecord component.private final byte[]The field for thepayloadrecord component.private final byte[]The field for thestaticTextrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionServerHello(byte[] ephemeral, byte[] staticText, byte[] payload) Creates an instance of aServerHellorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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.byte[]Returns the value of thestaticTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ephemeral
private final byte[] ephemeralThe field for theephemeralrecord component. -
staticText
private final byte[] staticTextThe field for thestaticTextrecord component. -
payload
private final byte[] payloadThe field for thepayloadrecord component.
-
-
Constructor Details
-
ServerHello
public ServerHello(byte[] ephemeral, byte[] staticText, byte[] payload) Creates an instance of aServerHellorecord class.- Parameters:
ephemeral- the value for theephemeralrecord componentstaticText- the value for thestaticTextrecord 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
-
staticText
public byte[] staticText()Returns the value of thestaticTextrecord component.- Returns:
- the value of the
staticTextrecord component
-
payload
public byte[] payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-