Module it.auties.cobalt
Record Class InteractiveHeaderThumbnail
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.button.interactive.InteractiveHeaderThumbnail
- Record Components:
thumbnail- the non-null jpeg thumbnail
- All Implemented Interfaces:
InteractiveHeaderAttachment
public record InteractiveHeaderThumbnail(byte[] thumbnail)
extends Record
implements InteractiveHeaderAttachment
A model that represents the jpeg thumbnail of a
InteractiveHeader-
Nested Class Summary
Nested classes/interfaces inherited from interface it.auties.whatsapp.model.button.interactive.InteractiveHeaderAttachment
InteractiveHeaderAttachment.Type -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInteractiveHeaderThumbnail(byte[] thumbnail) Creates an instance of aInteractiveHeaderThumbnailrecord 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.static InteractiveHeaderThumbnailof(byte[] thumbnail) byte[]Returns the value of thethumbnailrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
thumbnail
private final byte[] thumbnailThe field for thethumbnailrecord component.
-
-
Constructor Details
-
InteractiveHeaderThumbnail
public InteractiveHeaderThumbnail(byte[] thumbnail) Creates an instance of aInteractiveHeaderThumbnailrecord class.- Parameters:
thumbnail- the value for thethumbnailrecord component
-
-
Method Details
-
of
-
thumbnail
public byte[] thumbnail()Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
interactiveHeaderType
- Specified by:
interactiveHeaderTypein interfaceInteractiveHeaderAttachment
-
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).
-