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

net.optionfactory.whatsapp.dto.webhook.Entry Maven / Gradle / Ivy

package net.optionfactory.whatsapp.dto.webhook;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Generic webhook class wrapper. All Webhooks messages have this.
 *
 * @param changes Changes that triggered the Webhooks call. This field contains an array of change objects.
 * @param id      The ID of Whatsapp Business Accounts this Webhook belongs to.
 * @param time    Time for the entry. (WhatsApp Business Management API)
 */
public record Entry(

        /*
        	Changes that triggered the Webhooks call. This field contains an array of change objects.
         */
        @JsonProperty("changes") List changes,
        /*
            The ID of Whatsapp Business Accounts this Webhook belongs to.
        */
        @JsonProperty("id") String id,


        @JsonProperty("time") long time

) {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy