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

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

    Modifier and Type
    Method
    Description
    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.
    boolean
    Returns the value of the hidden 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.
    int
    Returns the value of the numberOfShares record component.
    Returns the value of the pinAuthor record component.
    Returns the value of the pinDate record component.
    boolean
    Returns the value of the pinned record component.
    Returns the value of the referencedContentId record component.
    Returns the value of the referencedContentType record component.
    Returns the value of the sharedActivityId record component.
    Returns the value of the space 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

    • 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 a ActivityModel record class.
      Parameters:
      id - the value for the id record component
      sharedActivityId - the value for the sharedActivityId record component
      content - the value for the content record component
      url - the value for the url record component
      pinDate - the value for the pinDate 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
      numberOfShares - the value for the numberOfShares record component
      hasLiked - the value for the hasLiked record component
      hasCommented - the value for the hasCommented record component
      hidden - the value for the hidden record component
      pinned - the value for the pinned record component
      canEdit - the value for the canEdit record component
      canDelete - the value for the canDelete record component
      pinAuthor - the value for the pinAuthor record component
      author - the value for the author record component
      space - the value for the space 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
    • sharedActivityId

      public Long sharedActivityId()
      Returns the value of the sharedActivityId record component.
      Returns:
      the value of the sharedActivityId 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
    • pinDate

      public String pinDate()
      Returns the value of the pinDate record component.
      Returns:
      the value of the pinDate 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
    • numberOfShares

      public int numberOfShares()
      Returns the value of the numberOfShares record component.
      Returns:
      the value of the numberOfShares 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
    • hidden

      public boolean hidden()
      Returns the value of the hidden record component.
      Returns:
      the value of the hidden record component
    • pinned

      public boolean pinned()
      Returns the value of the pinned record component.
      Returns:
      the value of the pinned 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
    • pinAuthor

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

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

      public SpaceModel space()
      Returns the value of the space record component.
      Returns:
      the value of the space record component