Package dev.postproxy.sdk.model
Record Class ProfileComment
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.ProfileComment
-
Constructor Summary
ConstructorsConstructorDescriptionProfileComment(String id, String externalId, String parentExternalId, String placementId, String body, String status, String authorUsername, String authorAvatarUrl, Map<String, Object> platformData, String postedAt, String createdAt, List<ProfileComment> replies) Creates an instance of aProfileCommentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorAvatarUrlrecord 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.Returns the value of theparentExternalIdrecord component.Returns the value of theplacementIdrecord 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
-
ProfileComment
public ProfileComment(String id, String externalId, String parentExternalId, String placementId, String body, String status, String authorUsername, String authorAvatarUrl, Map<String, Object> platformData, String postedAt, String createdAt, List<ProfileComment> replies) Creates an instance of aProfileCommentrecord class.- Parameters:
id- the value for theidrecord componentexternalId- the value for theexternalIdrecord componentparentExternalId- the value for theparentExternalIdrecord componentplacementId- the value for theplacementIdrecord componentbody- the value for thebodyrecord componentstatus- the value for thestatusrecord componentauthorUsername- the value for theauthorUsernamerecord componentauthorAvatarUrl- the value for theauthorAvatarUrlrecord 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. 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
-
externalId
Returns the value of theexternalIdrecord component.- Returns:
- the value of the
externalIdrecord component
-
parentExternalId
Returns the value of theparentExternalIdrecord component.- Returns:
- the value of the
parentExternalIdrecord component
-
placementId
Returns the value of theplacementIdrecord component.- Returns:
- the value of the
placementIdrecord 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
-
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
-