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

it.auties.whatsapp.model.message.standard.CallMessage Maven / Gradle / Ivy

package it.auties.whatsapp.model.message.standard;

import it.auties.protobuf.annotation.ProtobufMessage;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.message.model.Message;
import it.auties.whatsapp.model.message.model.MessageCategory;
import it.auties.whatsapp.model.message.model.MessageType;


/**
 * A message that contains information related to a call
 */
@ProtobufMessage(name = "Message.Call")
public record CallMessage(
        @ProtobufProperty(index = 1, type = ProtobufType.BYTES)
        byte[] key,
        @ProtobufProperty(index = 2, type = ProtobufType.STRING)
        String source,
        @ProtobufProperty(index = 3, type = ProtobufType.BYTES)
        byte[] data,
        @ProtobufProperty(index = 4, type = ProtobufType.UINT32)
        int delay
) implements Message {
    @Override
    public MessageType type() {
        return MessageType.CALL;
    }

    @Override
    public MessageCategory category() {
        return MessageCategory.STANDARD;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy