Package dev.postproxy.sdk.model
Record Class Comment
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.Comment
public record Comment(String id, String externalId, String body, String status, String authorUsername, String authorAvatarUrl, String authorExternalId, String parentExternalId, int likeCount, boolean isHidden, String permalink, Object platformData, String postedAt, String createdAt, List<Comment> replies)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionComment(String id, String externalId, String body, String status, String authorUsername, String authorAvatarUrl, String authorExternalId, String parentExternalId, int likeCount, boolean isHidden, String permalink, Object platformData, String postedAt, String createdAt, List<Comment> replies) Creates an instance of aCommentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorAvatarUrlrecord component.Returns the value of theauthorExternalIdrecord component.Returns the value of theauthorUsernamerecord component.body()Returns the value of thebodyrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalIdrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanisHidden()Returns the value of theisHiddenrecord component.intReturns the value of thelikeCountrecord component.Returns the value of theparentExternalIdrecord component.Returns the value of thepermalinkrecord component.Returns the value of theplatformDatarecord component.postedAt()Returns the value of thepostedAtrecord component.replies()Returns the value of therepliesrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Comment
public Comment(String id, String externalId, String body, String status, String authorUsername, String authorAvatarUrl, String authorExternalId, String parentExternalId, int likeCount, boolean isHidden, String permalink, Object platformData, String postedAt, String createdAt, List<Comment> replies) Creates an instance of aCommentrecord class.- Parameters:
id- the value for theidrecord componentexternalId- the value for theexternalIdrecord componentbody- the value for thebodyrecord componentstatus- the value for thestatusrecord componentauthorUsername- the value for theauthorUsernamerecord componentauthorAvatarUrl- the value for theauthorAvatarUrlrecord componentauthorExternalId- the value for theauthorExternalIdrecord componentparentExternalId- the value for theparentExternalIdrecord componentlikeCount- the value for thelikeCountrecord componentisHidden- the value for theisHiddenrecord componentpermalink- the value for thepermalinkrecord componentplatformData- the value for theplatformDatarecord componentpostedAt- the value for thepostedAtrecord componentcreatedAt- the value for thecreatedAtrecord componentreplies- the value for therepliesrecord 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
-
externalId
Returns the value of theexternalIdrecord component.- Returns:
- the value of the
externalIdrecord 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
-
authorUsername
Returns the value of theauthorUsernamerecord component.- Returns:
- the value of the
authorUsernamerecord component
-
authorAvatarUrl
Returns the value of theauthorAvatarUrlrecord component.- Returns:
- the value of the
authorAvatarUrlrecord component
-
authorExternalId
Returns the value of theauthorExternalIdrecord component.- Returns:
- the value of the
authorExternalIdrecord component
-
parentExternalId
Returns the value of theparentExternalIdrecord component.- Returns:
- the value of the
parentExternalIdrecord component
-
likeCount
public int likeCount()Returns the value of thelikeCountrecord component.- Returns:
- the value of the
likeCountrecord component
-
isHidden
public boolean isHidden()Returns the value of theisHiddenrecord component.- Returns:
- the value of the
isHiddenrecord component
-
permalink
Returns the value of thepermalinkrecord component.- Returns:
- the value of the
permalinkrecord component
-
platformData
Returns the value of theplatformDatarecord component.- Returns:
- the value of the
platformDatarecord component
-
postedAt
Returns the value of thepostedAtrecord component.- Returns:
- the value of the
postedAtrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
replies
Returns the value of therepliesrecord component.- Returns:
- the value of the
repliesrecord component
-