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

it.auties.whatsapp.model.action.FavoriteStickerAction Maven / Gradle / Ivy

There is a newer version: 2.7.2
Show newest version
package it.auties.whatsapp.model.action;

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.*;

/**
 * A model clas that represents a favourite sticker
 */
@AllArgsConstructor
@Data
@Builder
@Jacksonized
@Accessors(fluent = true)
public final class FavoriteStickerAction implements Action {
    /**
     * The direct path to the sticker
     */
    @ProtobufProperty(index = 1, type = STRING)
    private String directPath;

    /**
     * The last upload timestamp
     */
    @ProtobufProperty(index = 2, type = STRING)
    private String lastUploadTimestamp;

    /**
     * The handle of the sticker
     */
    @ProtobufProperty(index = 3, type = STRING)
    private String handle;

    /**
     * The hash of the sticker
     */
    @ProtobufProperty(index = 4, type = STRING)
    private String encFileHash;

    /**
     * The hash of the sticker without metadata
     */
    @ProtobufProperty(index = 5, type = STRING)
    private String stickerHashWithoutMeta;

    /**
     * The media key of the sticker
     */
    @ProtobufProperty(index = 6, type = STRING)
    private String mediaKey;

    /**
     * The timestamp of the media key of the sticker
     */
    @ProtobufProperty(index = 7, type = INT64)
    private long mediaKeyTimestamp;

    /**
     * Whether the sticker should be marked as favourite or not
     */
    @ProtobufProperty(index = 8, type = BOOL)
    private boolean favourite;

    /**
     * The name of this action
     *
     * @return a non-null string
     */
    @Override
    public String indexName() {
        return "favoriteSticker";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy