All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.auties.whatsapp.api.TextPreviewSetting Maven / Gradle / Ivy

package it.auties.whatsapp.api;

import it.auties.protobuf.annotation.ProtobufEnum;
import it.auties.protobuf.annotation.ProtobufEnumIndex;

/**
 * The constants of this enumerated type describe the various types of text preview that can be
 * used
 */
@ProtobufEnum
public enum TextPreviewSetting {
    /**
     * Link previews will be generated. If a message contains an url without a schema(for example
     * wikipedia.com), the message will be autocorrected to include it and a preview will be
     * generated
     */
    ENABLED_WITH_INFERENCE(0),

    /**
     * Link previews will be generated. No inference will be used.
     */
    ENABLED(1),

    /**
     * Link previews will not be generated
     */
    DISABLED(2);

    final int index;

    TextPreviewSetting(@ProtobufEnumIndex int index) {
        this.index = index;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy