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 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 a Chat record class.
      Parameters:
      id - the value for the id record component
      profileId - the value for the profileId record component
      platform - the value for the platform record component
      participantExternalId - the value for the participantExternalId record component
      participantUsername - the value for the participantUsername record component
      participantName - the value for the participantName record component
      participantAvatarUrl - the value for the participantAvatarUrl record component
      externalConversationId - the value for the externalConversationId record component
      lastInboundAt - the value for the lastInboundAt record component
      lastOutboundAt - the value for the lastOutboundAt record component
      lastMessageAt - the value for the lastMessageAt record component
      metadata - the value for the metadata record component
      archived - the value for the archived record component
      createdAt - the value for the createdAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • profileId

      public String profileId()
      Returns the value of the profileId record component.
      Returns:
      the value of the profileId record component
    • platform

      public Platform platform()
      Returns the value of the platform record component.
      Returns:
      the value of the platform record component
    • participantExternalId

      public String participantExternalId()
      Returns the value of the participantExternalId record component.
      Returns:
      the value of the participantExternalId record component
    • participantUsername

      public String participantUsername()
      Returns the value of the participantUsername record component.
      Returns:
      the value of the participantUsername record component
    • participantName

      public String participantName()
      Returns the value of the participantName record component.
      Returns:
      the value of the participantName record component
    • participantAvatarUrl

      public String participantAvatarUrl()
      Returns the value of the participantAvatarUrl record component.
      Returns:
      the value of the participantAvatarUrl record component
    • externalConversationId

      public String externalConversationId()
      Returns the value of the externalConversationId record component.
      Returns:
      the value of the externalConversationId record component
    • lastInboundAt

      public String lastInboundAt()
      Returns the value of the lastInboundAt record component.
      Returns:
      the value of the lastInboundAt record component
    • lastOutboundAt

      public String lastOutboundAt()
      Returns the value of the lastOutboundAt record component.
      Returns:
      the value of the lastOutboundAt record component
    • lastMessageAt

      public String lastMessageAt()
      Returns the value of the lastMessageAt record component.
      Returns:
      the value of the lastMessageAt record component
    • metadata

      public Map<String,Object> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • archived

      public Boolean archived()
      Returns the value of the archived record component.
      Returns:
      the value of the archived record component
    • createdAt

      public String createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component