java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.PhotoChange
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thenewPhotorecord component.private final IntegerThe field for thenewPhotoIdrecord component.private final byte[]The field for theoldPhotorecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPhotoChange(byte[] oldPhoto, byte[] newPhoto, Integer newPhotoId) Creates an instance of aPhotoChangerecord 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.byte[]newPhoto()Returns the value of thenewPhotorecord component.Returns the value of thenewPhotoIdrecord component.byte[]oldPhoto()Returns the value of theoldPhotorecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
oldPhoto
private final byte[] oldPhotoThe field for theoldPhotorecord component. -
newPhoto
private final byte[] newPhotoThe field for thenewPhotorecord component. -
newPhotoId
The field for thenewPhotoIdrecord component.
-
-
Constructor Details
-
PhotoChange
Creates an instance of aPhotoChangerecord class.- Parameters:
oldPhoto- the value for theoldPhotorecord componentnewPhoto- the value for thenewPhotorecord componentnewPhotoId- the value for thenewPhotoIdrecord 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). -
oldPhoto
public byte[] oldPhoto()Returns the value of theoldPhotorecord component.- Returns:
- the value of the
oldPhotorecord component
-
newPhoto
public byte[] newPhoto()Returns the value of thenewPhotorecord component.- Returns:
- the value of the
newPhotorecord component
-
newPhotoId
Returns the value of thenewPhotoIdrecord component.- Returns:
- the value of the
newPhotoIdrecord component
-