-
Notifications
You must be signed in to change notification settings - Fork 5
/
WebHookEvent.java
22 lines (18 loc) · 1.1 KB
/
WebHookEvent.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.whatsapp.api.domain.webhook;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
/**
* This class is a representation of the json object sent by the WhatsApp webhook.
* Whenever a trigger event occurs, the WhatsApp Business Platform sees the event and sends a notification to a Webhook URL you have previously specified.
* You can get two types of notifications:<br>
* - <b>Received messages</b>: This alert lets you know when you have received a message. These can also be called "inbound notifications" throughout the documentation.<br>
* - <b>Message status and pricing notifications</b>: This alert lets you know when the status of a message has changed —for example, the message has been read or delivered. These can also be called "outbound notifications" throughout the documentation.
*
* @see <a href="https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks">Webhooks Setup Guide</a> to more details.
**/
@Data
public class WebHookEvent{
@JsonProperty("entry") List<Entry> entry;
@JsonProperty("object") String object;
}