Package dev.postproxy.sdk.model
Record Class Chat
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.Chat
public record Chat(String id, String profileId, Platform platform, String participantExternalId, String participantUsername, String participantName, String participantAvatarUrl, String externalConversationId, String lastInboundAt, String lastOutboundAt, String lastMessageAt, Map<String,Object> metadata, Boolean archived, String createdAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionChat(String id, String profileId, Platform platform, String participantExternalId, String participantUsername, String participantName, String participantAvatarUrl, String externalConversationId, String lastInboundAt, String lastOutboundAt, String lastMessageAt, Map<String, Object> metadata, Boolean archived, String createdAt) Creates an instance of aChatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarchived()Returns the value of thearchivedrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalConversationIdrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelastInboundAtrecord component.Returns the value of thelastMessageAtrecord component.Returns the value of thelastOutboundAtrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of theparticipantAvatarUrlrecord component.Returns the value of theparticipantExternalIdrecord component.Returns the value of theparticipantNamerecord component.Returns the value of theparticipantUsernamerecord component.platform()Returns the value of theplatformrecord component.Returns the value of theprofileIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Chat
public Chat(String id, String profileId, Platform platform, String participantExternalId, String participantUsername, String participantName, String participantAvatarUrl, String externalConversationId, String lastInboundAt, String lastOutboundAt, String lastMessageAt, Map<String, Object> metadata, Boolean archived, String createdAt) Creates an instance of aChatrecord class.- Parameters:
id- the value for theidrecord componentprofileId- the value for theprofileIdrecord componentplatform- the value for theplatformrecord componentparticipantExternalId- the value for theparticipantExternalIdrecord componentparticipantUsername- the value for theparticipantUsernamerecord componentparticipantName- the value for theparticipantNamerecord componentparticipantAvatarUrl- the value for theparticipantAvatarUrlrecord componentexternalConversationId- the value for theexternalConversationIdrecord componentlastInboundAt- the value for thelastInboundAtrecord componentlastOutboundAt- the value for thelastOutboundAtrecord componentlastMessageAt- the value for thelastMessageAtrecord componentmetadata- the value for themetadatarecord componentarchived- the value for thearchivedrecord componentcreatedAt- the value for thecreatedAtrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
participantExternalId
Returns the value of theparticipantExternalIdrecord component.- Returns:
- the value of the
participantExternalIdrecord component
-
participantUsername
Returns the value of theparticipantUsernamerecord component.- Returns:
- the value of the
participantUsernamerecord component
-
participantName
Returns the value of theparticipantNamerecord component.- Returns:
- the value of the
participantNamerecord component
-
participantAvatarUrl
Returns the value of theparticipantAvatarUrlrecord component.- Returns:
- the value of the
participantAvatarUrlrecord component
-
externalConversationId
Returns the value of theexternalConversationIdrecord component.- Returns:
- the value of the
externalConversationIdrecord component
-
lastInboundAt
Returns the value of thelastInboundAtrecord component.- Returns:
- the value of the
lastInboundAtrecord component
-
lastOutboundAt
Returns the value of thelastOutboundAtrecord component.- Returns:
- the value of the
lastOutboundAtrecord component
-
lastMessageAt
Returns the value of thelastMessageAtrecord component.- Returns:
- the value of the
lastMessageAtrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
archived
Returns the value of thearchivedrecord component.- Returns:
- the value of the
archivedrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-