it.auties.whatsapp.model.action.RecentStickerWeightsAction 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.ProtobufProperty;
import it.auties.whatsapp.binary.BinaryPatchType;
import it.auties.whatsapp.model.sync.RecentStickerWeight;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.jackson.Jacksonized;
import java.util.List;
import static it.auties.protobuf.base.ProtobufType.MESSAGE;
/**
* A model clas that represents a change in the weight of recent stickers
*/
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Data
@Builder
@Jacksonized
@Accessors(fluent = true)
public final class RecentStickerWeightsAction implements Action {
/**
* The weight of the stickers
*/
@ProtobufProperty(index = 1, type = MESSAGE, implementation = RecentStickerWeight.class, repeated = true)
private List weights;
/**
* Always throws an exception as this action cannot be serialized
*
* @return an exception
*/
@Override
public String indexName() {
throw new UnsupportedOperationException("Cannot send action");
}
/**
* Always throws an exception as this action cannot be serialized
*
* @return an exception
*/
@Override
public int actionVersion() {
throw new UnsupportedOperationException("Cannot send action");
}
/**
* Always throws an exception as this action cannot be serialized
*
* @return an exception
*/
@Override
public BinaryPatchType actionType() {
throw new UnsupportedOperationException("Cannot send action");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy