Package io.meeds.mcp.server.tool.model
Record Class ActivityModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.ActivityModel
public record ActivityModel(long id, Long sharedActivityId, String content, String url, String pinDate, String updatedDate, String createDate, String referencedContentType, String referencedContentId, int numberOfLikes, int numberOfComments, int numberOfShares, boolean hasLiked, boolean hasCommented, boolean hidden, boolean pinned, boolean canEdit, boolean canDelete, UserModel pinAuthor, UserModel author, SpaceModel space)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionActivityModel(long id, Long sharedActivityId, String content, String url, String pinDate, String updatedDate, String createDate, String referencedContentType, String referencedContentId, int numberOfLikes, int numberOfComments, int numberOfShares, boolean hasLiked, boolean hasCommented, boolean hidden, boolean pinned, boolean canEdit, boolean canDelete, UserModel pinAuthor, UserModel author, SpaceModel space) Creates an instance of aActivityModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()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.booleanhidden()Returns the value of thehiddenrecord component.longid()Returns the value of theidrecord component.intReturns the value of thenumberOfCommentsrecord component.intReturns the value of thenumberOfLikesrecord component.intReturns the value of thenumberOfSharesrecord component.Returns the value of thepinAuthorrecord component.pinDate()Returns the value of thepinDaterecord component.booleanpinned()Returns the value of thepinnedrecord component.Returns the value of thereferencedContentIdrecord component.Returns the value of thereferencedContentTyperecord component.Returns the value of thesharedActivityIdrecord component.space()Returns the value of thespacerecord 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
-
ActivityModel
public ActivityModel(long id, Long sharedActivityId, String content, String url, String pinDate, String updatedDate, String createDate, String referencedContentType, String referencedContentId, int numberOfLikes, int numberOfComments, int numberOfShares, boolean hasLiked, boolean hasCommented, boolean hidden, boolean pinned, boolean canEdit, boolean canDelete, UserModel pinAuthor, UserModel author, SpaceModel space) Creates an instance of aActivityModelrecord class.- Parameters:
id- the value for theidrecord componentsharedActivityId- the value for thesharedActivityIdrecord componentcontent- the value for thecontentrecord componenturl- the value for theurlrecord componentpinDate- the value for thepinDaterecord 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 componentnumberOfShares- the value for thenumberOfSharesrecord componenthasLiked- the value for thehasLikedrecord componenthasCommented- the value for thehasCommentedrecord componenthidden- the value for thehiddenrecord componentpinned- the value for thepinnedrecord componentcanEdit- the value for thecanEditrecord componentcanDelete- the value for thecanDeleterecord componentpinAuthor- the value for thepinAuthorrecord componentauthor- the value for theauthorrecord componentspace- the value for thespacerecord 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
-
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
-
pinDate
Returns the value of thepinDaterecord component.- Returns:
- the value of the
pinDaterecord 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
-
pinned
public boolean pinned()Returns the value of thepinnedrecord component.- Returns:
- the value of the
pinnedrecord 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
-
pinAuthor
Returns the value of thepinAuthorrecord component.- Returns:
- the value of the
pinAuthorrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
space
Returns the value of thespacerecord component.- Returns:
- the value of the
spacerecord component
-