java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.SnapshotSync
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record SnapshotSync(VersionSync version, List<RecordSync> records, byte[] mac, KeyId keyId)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyIdThe field for thekeyIdrecord component.private final byte[]The field for themacrecord component.private final List<RecordSync> The field for therecordsrecord component.private final VersionSyncThe field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotSync(VersionSync version, List<RecordSync> records, byte[] mac, KeyId keyId) Creates an instance of aSnapshotSyncrecord 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.keyId()Returns the value of thekeyIdrecord component.byte[]mac()Returns the value of themacrecord component.records()Returns the value of therecordsrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
version
The field for theversionrecord component. -
records
The field for therecordsrecord component. -
mac
private final byte[] macThe field for themacrecord component. -
keyId
The field for thekeyIdrecord component.
-
-
Constructor Details
-
SnapshotSync
Creates an instance of aSnapshotSyncrecord class.- Parameters:
version- the value for theversionrecord componentrecords- the value for therecordsrecord componentmac- the value for themacrecord componentkeyId- the value for thekeyIdrecord 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). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-
mac
public byte[] mac()Returns the value of themacrecord component.- Returns:
- the value of the
macrecord component
-
keyId
Returns the value of thekeyIdrecord component.- Returns:
- the value of the
keyIdrecord component
-