it.auties.whatsapp.model.poll.PollOption 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.poll;
import it.auties.protobuf.base.ProtobufMessage;
import it.auties.protobuf.base.ProtobufName;
import it.auties.protobuf.base.ProtobufProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.jackson.Jacksonized;
import static it.auties.protobuf.base.ProtobufType.STRING;
/**
* A model class that represents an option in a
* {@link it.auties.whatsapp.model.message.standard.PollCreationMessage}
*/
@AllArgsConstructor(staticName = "of")
@Data
@Accessors(fluent = true)
@Jacksonized
@Builder
@ProtobufName("PollOption")
public class PollOption implements ProtobufMessage {
/**
* The name of the option
*/
@ProtobufProperty(index = 1, name = "name", type = STRING)
private String name;
}