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. SeeOriginobject for more information.id- The ID of the conversation the given status notification belongs to.
The type Conversation.
-
Constructor Summary
ConstructorsConstructorDescriptionConversation(String expirationTimestamp, Origin origin, String id) Creates an instance of aConversationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpirationTimestamprecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.origin()Returns the value of theoriginrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Conversation
Creates an instance of aConversationrecord class.- Parameters:
expirationTimestamp- the value for theexpirationTimestamprecord componentorigin- the value for theoriginrecord componentid- the value for theidrecord 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 theexpirationTimestamprecord component.- Returns:
- the value of the
expirationTimestamprecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-