Package dev.postproxy.sdk.model
Record Class Message
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.Message
public record Message(String id, String chatId, String externalId, MessageDirection direction, String body, MessageStatus status, String tag, String externalCommentId, String errorMessage, Map<String,Object> platformData, String externalPostedAt, String externalDeliveredAt, String externalReadAt, String externalEditedAt, String replyToExternalId, Map<String,Object> replyMarkup, String externalDeletedAt, List<Reaction> reactions, List<Attachment> attachments, boolean isUnsupported, String createdAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessage(String id, String chatId, String externalId, MessageDirection direction, String body, MessageStatus status, String tag, String externalCommentId, String errorMessage, Map<String, Object> platformData, String externalPostedAt, String externalDeliveredAt, String externalReadAt, String externalEditedAt, String replyToExternalId, Map<String, Object> replyMarkup, String externalDeletedAt, List<Reaction> reactions, List<Attachment> attachments, boolean isUnsupported, String createdAt) Creates an instance of aMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.body()Returns the value of thebodyrecord component.chatId()Returns the value of thechatIdrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.Returns the value of theexternalCommentIdrecord component.Returns the value of theexternalDeletedAtrecord component.Returns the value of theexternalDeliveredAtrecord component.Returns the value of theexternalEditedAtrecord component.Returns the value of theexternalIdrecord component.Returns the value of theexternalPostedAtrecord component.Returns the value of theexternalReadAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanReturns the value of theisUnsupportedrecord component.Returns the value of theplatformDatarecord component.Returns the value of thereactionsrecord component.Returns the value of thereplyMarkuprecord component.Returns the value of thereplyToExternalIdrecord component.status()Returns the value of thestatusrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Message
public Message(String id, String chatId, String externalId, MessageDirection direction, String body, MessageStatus status, String tag, String externalCommentId, String errorMessage, Map<String, Object> platformData, String externalPostedAt, String externalDeliveredAt, String externalReadAt, String externalEditedAt, String replyToExternalId, Map<String, Object> replyMarkup, String externalDeletedAt, List<Reaction> reactions, List<Attachment> attachments, boolean isUnsupported, String createdAt) Creates an instance of aMessagerecord class.- Parameters:
id- the value for theidrecord componentchatId- the value for thechatIdrecord componentexternalId- the value for theexternalIdrecord componentdirection- the value for thedirectionrecord componentbody- the value for thebodyrecord componentstatus- the value for thestatusrecord componenttag- the value for thetagrecord componentexternalCommentId- the value for theexternalCommentIdrecord componenterrorMessage- the value for theerrorMessagerecord componentplatformData- the value for theplatformDatarecord componentexternalPostedAt- the value for theexternalPostedAtrecord componentexternalDeliveredAt- the value for theexternalDeliveredAtrecord componentexternalReadAt- the value for theexternalReadAtrecord componentexternalEditedAt- the value for theexternalEditedAtrecord componentreplyToExternalId- the value for thereplyToExternalIdrecord componentreplyMarkup- the value for thereplyMarkuprecord componentexternalDeletedAt- the value for theexternalDeletedAtrecord componentreactions- the value for thereactionsrecord componentattachments- the value for theattachmentsrecord componentisUnsupported- the value for theisUnsupportedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
chatId
Returns the value of thechatIdrecord component.- Returns:
- the value of the
chatIdrecord component
-
externalId
Returns the value of theexternalIdrecord component.- Returns:
- the value of the
externalIdrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
externalCommentId
Returns the value of theexternalCommentIdrecord component.- Returns:
- the value of the
externalCommentIdrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
platformData
Returns the value of theplatformDatarecord component.- Returns:
- the value of the
platformDatarecord component
-
externalPostedAt
Returns the value of theexternalPostedAtrecord component.- Returns:
- the value of the
externalPostedAtrecord component
-
externalDeliveredAt
Returns the value of theexternalDeliveredAtrecord component.- Returns:
- the value of the
externalDeliveredAtrecord component
-
externalReadAt
Returns the value of theexternalReadAtrecord component.- Returns:
- the value of the
externalReadAtrecord component
-
externalEditedAt
Returns the value of theexternalEditedAtrecord component.- Returns:
- the value of the
externalEditedAtrecord component
-
replyToExternalId
Returns the value of thereplyToExternalIdrecord component.- Returns:
- the value of the
replyToExternalIdrecord component
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-
externalDeletedAt
Returns the value of theexternalDeletedAtrecord component.- Returns:
- the value of the
externalDeletedAtrecord component
-
reactions
Returns the value of thereactionsrecord component.- Returns:
- the value of the
reactionsrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-
isUnsupported
public boolean isUnsupported()Returns the value of theisUnsupportedrecord component.- Returns:
- the value of the
isUnsupportedrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-