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

    Constructors
    Constructor
    Description
    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 a ActivityCommentModel record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the activityId record component.
    Returns the value of the author record component.
    boolean
    Returns the value of the canDelete record component.
    boolean
    Returns the value of the canEdit record component.
    Returns the value of the content record component.
    Returns the value of the createDate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the hasCommented record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hasLiked record component.
    long
    id()
    Returns the value of the id record component.
    int
    Returns the value of the numberOfComments record component.
    int
    Returns the value of the numberOfLikes record component.
    Returns the value of the parentCommentId record component.
    Returns the value of the referencedContentId record component.
    Returns the value of the referencedContentType record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the updatedDate record component.
    url()
    Returns the value of the url record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ActivityCommentModel record class.
      Parameters:
      id - the value for the id record component
      activityId - the value for the activityId record component
      parentCommentId - the value for the parentCommentId record component
      content - the value for the content record component
      url - the value for the url record component
      updatedDate - the value for the updatedDate record component
      createDate - the value for the createDate record component
      referencedContentType - the value for the referencedContentType record component
      referencedContentId - the value for the referencedContentId record component
      numberOfLikes - the value for the numberOfLikes record component
      numberOfComments - the value for the numberOfComments record component
      hasLiked - the value for the hasLiked record component
      hasCommented - the value for the hasCommented record component
      canEdit - the value for the canEdit record component
      canDelete - the value for the canDelete record component
      author - the value for the author record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • activityId

      public long activityId()
      Returns the value of the activityId record component.
      Returns:
      the value of the activityId record component
    • parentCommentId

      public Long parentCommentId()
      Returns the value of the parentCommentId record component.
      Returns:
      the value of the parentCommentId record component
    • content

      public String content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • updatedDate

      public String updatedDate()
      Returns the value of the updatedDate record component.
      Returns:
      the value of the updatedDate record component
    • createDate

      public String createDate()
      Returns the value of the createDate record component.
      Returns:
      the value of the createDate record component
    • referencedContentType

      public String referencedContentType()
      Returns the value of the referencedContentType record component.
      Returns:
      the value of the referencedContentType record component
    • referencedContentId

      public String referencedContentId()
      Returns the value of the referencedContentId record component.
      Returns:
      the value of the referencedContentId record component
    • numberOfLikes

      public int numberOfLikes()
      Returns the value of the numberOfLikes record component.
      Returns:
      the value of the numberOfLikes record component
    • numberOfComments

      public int numberOfComments()
      Returns the value of the numberOfComments record component.
      Returns:
      the value of the numberOfComments record component
    • hasLiked

      public boolean hasLiked()
      Returns the value of the hasLiked record component.
      Returns:
      the value of the hasLiked record component
    • hasCommented

      public boolean hasCommented()
      Returns the value of the hasCommented record component.
      Returns:
      the value of the hasCommented record component
    • canEdit

      public boolean canEdit()
      Returns the value of the canEdit record component.
      Returns:
      the value of the canEdit record component
    • canDelete

      public boolean canDelete()
      Returns the value of the canDelete record component.
      Returns:
      the value of the canDelete record component
    • author

      public UserModel author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component