it.auties.whatsapp.model.message.standard.KeepInChatMessage 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.message.standard;
import it.auties.protobuf.base.ProtobufName;
import it.auties.protobuf.base.ProtobufProperty;
import it.auties.whatsapp.model.message.model.*;
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.INT64;
import static it.auties.protobuf.base.ProtobufType.MESSAGE;
@AllArgsConstructor
@Data
@Accessors(fluent = true)
@Jacksonized
@Builder
@ProtobufName("KeepInChatMessage")
public final class KeepInChatMessage implements Message {
@ProtobufProperty(index = 1, name = "key", type = MESSAGE)
private MessageKey key;
@ProtobufProperty(index = 2, name = "keepType", type = MESSAGE)
private KeepInChatType keepType;
@ProtobufProperty(index = 3, name = "timestampMs", type = INT64)
private long timestampMilliseconds;
@Override
public MessageType type() {
return MessageType.KEEP_IN_CHAT;
}
@Override
public MessageCategory category() {
return MessageCategory.STANDARD;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy