Package com.whatsapp.api.domain.webhook
Record Class Conversation
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Conversation
- Record Components:
expirationTimestamp
- The timestamp when the current ongoing conversation expires. This field is not present in all Webhook types.origin
- Describes where the conversation originated from. SeeOrigin
object for more information.id
- The ID of the conversation the given status notification belongs to.
The type Conversation.
-
Constructor Summary
ConstructorDescriptionConversation
(String expirationTimestamp, Origin origin, String id) Creates an instance of aConversation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpirationTimestamp
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.origin()
Returns the value of theorigin
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Conversation
Creates an instance of aConversation
record class.- Parameters:
expirationTimestamp
- the value for theexpirationTimestamp
record componentorigin
- the value for theorigin
record componentid
- the value for theid
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)
. -
expirationTimestamp
Returns the value of theexpirationTimestamp
record component.- Returns:
- the value of the
expirationTimestamp
record component
-
origin
Returns the value of theorigin
record component.- Returns:
- the value of the
origin
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-