it.auties.whatsapp.model.action.PinAction Maven / Gradle / Ivy
package it.auties.whatsapp.model.action;
import it.auties.protobuf.annotation.ProtobufMessageName;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.sync.PatchType;
/**
* A model clas that represents a new pin status for a chat
*/
@ProtobufMessageName("SyncActionValue.PinAction")
public record PinAction(
@ProtobufProperty(index = 1, type = ProtobufType.BOOL)
boolean pinned
) implements Action {
/**
* The name of this action
*
* @return a non-null string
*/
@Override
public String indexName() {
return "pin_v1";
}
/**
* The version of this action
*
* @return a non-null string
*/
@Override
public int actionVersion() {
return 5;
}
/**
* The type of this action
*
* @return a non-null string
*/
@Override
public PatchType actionType() {
return null;
}
}