Package io.meeds.mcp.server.tool.model
Record Class ActivityCommentModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.ActivityCommentModel
public record ActivityCommentModel(long id, long activityId, Long parentCommentId, String content, String url, String updatedDate, String createDate, String referencedContentType, String referencedContentId, int numberOfLikes, int numberOfComments, boolean hasLiked, boolean hasCommented, boolean canEdit, boolean canDelete, UserModel author)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionActivityCommentModel(long id, long activityId, Long parentCommentId, String content, String url, String updatedDate, String createDate, String referencedContentType, String referencedContentId, int numberOfLikes, int numberOfComments, boolean hasLiked, boolean hasCommented, boolean canEdit, boolean canDelete, UserModel author) Creates an instance of aActivityCommentModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theactivityIdrecord component.author()Returns the value of theauthorrecord component.booleanReturns the value of thecanDeleterecord component.booleancanEdit()Returns the value of thecanEditrecord component.content()Returns the value of thecontentrecord component.Returns the value of thecreateDaterecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasCommentedrecord component.final inthashCode()Returns a hash code value for this object.booleanhasLiked()Returns the value of thehasLikedrecord component.longid()Returns the value of theidrecord component.intReturns the value of thenumberOfCommentsrecord component.intReturns the value of thenumberOfLikesrecord component.Returns the value of theparentCommentIdrecord component.Returns the value of thereferencedContentIdrecord component.Returns the value of thereferencedContentTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedDaterecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ActivityCommentModel
public ActivityCommentModel(long id, long activityId, Long parentCommentId, String content, String url, String updatedDate, String createDate, String referencedContentType, String referencedContentId, int numberOfLikes, int numberOfComments, boolean hasLiked, boolean hasCommented, boolean canEdit, boolean canDelete, UserModel author) Creates an instance of aActivityCommentModelrecord class.- Parameters:
id- the value for theidrecord componentactivityId- the value for theactivityIdrecord componentparentCommentId- the value for theparentCommentIdrecord componentcontent- the value for thecontentrecord componenturl- the value for theurlrecord componentupdatedDate- the value for theupdatedDaterecord componentcreateDate- the value for thecreateDaterecord componentreferencedContentType- the value for thereferencedContentTyperecord componentreferencedContentId- the value for thereferencedContentIdrecord componentnumberOfLikes- the value for thenumberOfLikesrecord componentnumberOfComments- the value for thenumberOfCommentsrecord componenthasLiked- the value for thehasLikedrecord componenthasCommented- the value for thehasCommentedrecord componentcanEdit- the value for thecanEditrecord componentcanDelete- the value for thecanDeleterecord componentauthor- the value for theauthorrecord 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
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
activityId
public long activityId()Returns the value of theactivityIdrecord component.- Returns:
- the value of the
activityIdrecord component
-
parentCommentId
Returns the value of theparentCommentIdrecord component.- Returns:
- the value of the
parentCommentIdrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
updatedDate
Returns the value of theupdatedDaterecord component.- Returns:
- the value of the
updatedDaterecord component
-
createDate
Returns the value of thecreateDaterecord component.- Returns:
- the value of the
createDaterecord component
-
referencedContentType
Returns the value of thereferencedContentTyperecord component.- Returns:
- the value of the
referencedContentTyperecord component
-
referencedContentId
Returns the value of thereferencedContentIdrecord component.- Returns:
- the value of the
referencedContentIdrecord component
-
numberOfLikes
public int numberOfLikes()Returns the value of thenumberOfLikesrecord component.- Returns:
- the value of the
numberOfLikesrecord component
-
numberOfComments
public int numberOfComments()Returns the value of thenumberOfCommentsrecord component.- Returns:
- the value of the
numberOfCommentsrecord component
-
hasLiked
public boolean hasLiked()Returns the value of thehasLikedrecord component.- Returns:
- the value of the
hasLikedrecord component
-
hasCommented
public boolean hasCommented()Returns the value of thehasCommentedrecord component.- Returns:
- the value of the
hasCommentedrecord component
-
canEdit
public boolean canEdit()Returns the value of thecanEditrecord component.- Returns:
- the value of the
canEditrecord component
-
canDelete
public boolean canDelete()Returns the value of thecanDeleterecord component.- Returns:
- the value of the
canDeleterecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-