Package com.whatsapp.api.domain.webhook
Record Class Status
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Status
- Record Components:
id
- The message ID.conversation
- This object will be provided by default when Conversation-Based Pricing launches in a future update. Object containing conversation attributes, including id. See conversation object for more information.WhatsApp defines a conversation as a 24-hour session of messaging between a person and a business. There is no limit on the number of messages that can be exchanged in the fixed 24-hour window. The 24-hour conversation session begins when:
- A business-initiated message is delivered to a user
- A business’ reply to a user message is delivered
The 24-hour conversation session is different from the 24-hour customer support window. The customer support window is a rolling window that is refreshed when a user-initiated message is delivered to a business. Within the customer support window businesses can send free-form messages. Any business-initiated message sent more than 24 hours after the last customer message must be a template message.
pricing
- This object will be provided by default when Conversation-Based Pricing launches in a future update.recipientId
- The WhatsApp ID of the recipient.status
- The status of the message. Valid values are: read, delivered, sent, failed, or deleted.timestamp
- The timestamp of the status message.errors
- The errors object in webhooks triggered by v16.0+ request errors now include message and error_data.details properties, and title values have changed for multiple error codes.
public record Status(String id, Conversation conversation, Pricing pricing, String recipientId, MessageStatus status, String timestamp, List<Error> errors)
extends Record
The type Status.
-
Constructor Summary
ConstructorDescriptionStatus
(String id, Conversation conversation, Pricing pricing, String recipientId, MessageStatus status, String timestamp, List<Error> errors) Creates an instance of aStatus
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconversation
record component.final boolean
Indicates whether some other object is "equal to" this one.errors()
Returns the value of theerrors
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.pricing()
Returns the value of thepricing
record component.Returns the value of therecipientId
record component.status()
Returns the value of thestatus
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Status
public Status(String id, Conversation conversation, Pricing pricing, String recipientId, MessageStatus status, String timestamp, List<Error> errors) Creates an instance of aStatus
record class.- Parameters:
id
- the value for theid
record componentconversation
- the value for theconversation
record componentpricing
- the value for thepricing
record componentrecipientId
- the value for therecipientId
record componentstatus
- the value for thestatus
record componenttimestamp
- the value for thetimestamp
record componenterrors
- the value for theerrors
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
conversation
Returns the value of theconversation
record component.- Returns:
- the value of the
conversation
record component
-
pricing
Returns the value of thepricing
record component.- Returns:
- the value of the
pricing
record component
-
recipientId
Returns the value of therecipientId
record component.- Returns:
- the value of the
recipientId
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
errors
Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-