it.auties.whatsapp.model.business.BusinessVerifiedLevel 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.business;
import com.fasterxml.jackson.annotation.JsonCreator;
import it.auties.protobuf.base.ProtobufMessage;
import it.auties.protobuf.base.ProtobufName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Accessors;
import java.util.Arrays;
/**
* The constants of this enumerated type describe the various types of verification that a business
* account can have
*/
@AllArgsConstructor
@Accessors(fluent = true)
@ProtobufName("VerifiedLevelValue")
public enum BusinessVerifiedLevel implements ProtobufMessage {
/**
* Unknown
*/
UNKNOWN(0),
/**
* Low
*/
LOW(1),
/**
* High
*/
HIGH(2);
@Getter
private final int index;
@JsonCreator
public static BusinessVerifiedLevel of(int index) {
return Arrays.stream(values()).filter(entry -> entry.index() == index).findFirst().orElse(null);
}
}