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

it.auties.whatsapp.model.info.CallInfo Maven / Gradle / Ivy

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

import it.auties.protobuf.base.ProtobufMessage;
import it.auties.protobuf.base.ProtobufName;
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 class that holds the information related to a Whatsapp call.
 */
@AllArgsConstructor
@Data
@Builder
@Jacksonized
@Accessors(fluent = true)
@ProtobufName("Call")
public final class CallInfo implements Info, ProtobufMessage {
    /**
     * The key of this call
     */
    @ProtobufProperty(index = 1, type = BYTES)
    private byte[] key;

    /**
     * The source of this call
     */
    @ProtobufProperty(index = 2, type = STRING)
    private String source;

    /**
     * The data of this call
     */
    @ProtobufProperty(index = 3, type = BYTES)
    private byte[] data;

    /**
     * The delay of this call in endTimeStamp
     */
    @ProtobufProperty(index = 4, type = UINT32)
    private int delay;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy