it.auties.whatsapp.model.interactive.InteractiveHeaderThumbnail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whatsappweb4j Show documentation
Show all versions of whatsappweb4j Show documentation
Standalone fully-featured Whatsapp Web API for Java and Kotlin
package it.auties.whatsapp.model.interactive;
import lombok.Builder;
import lombok.NonNull;
/**
* A model that represents the jpeg thumbnail of a {@link InteractiveHeader}
*
* @param thumbnail the non-null jpeg thumbnail
*/
@Builder
public record InteractiveHeaderThumbnail(byte @NonNull [] thumbnail) implements InteractiveHeaderAttachment {
/**
* Constructs a new thumbnail from a non-null array of bytes
*
* @param thumbnail the non-null jpeg thumbnail
* @return a non-null thumbnail
*/
public static InteractiveHeaderThumbnail of(byte[] thumbnail){
return new InteractiveHeaderThumbnail(thumbnail);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy