it.auties.whatsapp.model.message.standard.EmptyMessage 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.message.standard;
import it.auties.whatsapp.model.message.model.Message;
import it.auties.whatsapp.model.message.model.MessageCategory;
import it.auties.whatsapp.model.message.model.MessageType;
import lombok.Builder;
import lombok.NoArgsConstructor;
/**
* A model class that represents an empty message. Used to prevent NPEs from empty messages sent by
* Whatsapp. Consider this a stub type.
*/
@NoArgsConstructor
@Builder
public final class EmptyMessage implements Message {
@Override
public MessageType type() {
return MessageType.EMPTY;
}
@Override
public MessageCategory category() {
return MessageCategory.STANDARD;
}
}