it.auties.whatsapp.model.action.PrimaryVersionAction 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.action;
import it.auties.protobuf.base.ProtobufName;
import it.auties.protobuf.base.ProtobufProperty;
import it.auties.whatsapp.binary.BinaryPatchType;
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 contains the main Whatsapp version being used
*/
@AllArgsConstructor
@Data
@Accessors(fluent = true)
@Jacksonized
@Builder
@ProtobufName("PrimaryVersionAction")
public final class PrimaryVersionAction implements Action {
@ProtobufProperty(index = 1, name = "version", type = STRING)
private String version;
/**
* The name of this action
*
* @return a non-null string
*/
@Override
public String indexName() {
return "primary_version";
}
/**
* The version of this action
*
* @return a non-null string
*/
@Override
public int actionVersion() {
return 7;
}
/**
* The type of this action
*
* @return a non-null string
*/
@Override
public BinaryPatchType actionType() {
return null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy