Module it.auties.cobalt
Record Class SenderKeyDistributionMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.server.SenderKeyDistributionMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message,ServerMessage
public record SenderKeyDistributionMessage(String groupId, byte[] data)
extends Record
implements ServerMessage
A model class that represents a message sent by WhatsappWeb for security purposes. Whatsapp
follows the Signal Standard, for more information about this message visit their
documentation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSenderKeyDistributionMessage(String groupId, byte[] data) Creates an instance of aSenderKeyDistributionMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Return message typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.auties.whatsapp.model.message.model.ServerMessage
category
-
Field Details
-
groupId
The field for thegroupIdrecord component. -
data
private final byte[] dataThe field for thedatarecord component.
-
-
Constructor Details
-
SenderKeyDistributionMessage
Creates an instance of aSenderKeyDistributionMessagerecord class.- Parameters:
groupId- the value for thegroupIdrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
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). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-