ActivityDataMutations extension
Extension functions for ActivityData to handle common operations.
- on
Methods
-
addBookmark(
BookmarkData bookmark, String currentUserId) → ActivityData -
Available on ActivityData, provided by the ActivityDataMutations extension
Adds a bookmark to the activity, updating the own bookmarks and bookmark count. -
addComment(
CommentData comment) → ActivityData -
Available on ActivityData, provided by the ActivityDataMutations extension
Adds a comment to the activity, updating the comment count and the list of comments. -
addReaction(
FeedsReactionData reaction, String currentUserId) → ActivityData -
Available on ActivityData, provided by the ActivityDataMutations extension
Adds a reaction to the activity, updating the latest reactions, reaction groups, reaction count, and own reactions. -
removeBookmark(
BookmarkData bookmark, String currentUserId) → ActivityData -
Available on ActivityData, provided by the ActivityDataMutations extension
Removes a bookmark from the activity, updating the own bookmarks and bookmark count. -
removeComment(
CommentData comment) → ActivityData -
Available on ActivityData, provided by the ActivityDataMutations extension
Removes a comment from the activity, updating the comment count and the list of comments. -
removeReaction(
FeedsReactionData reaction, String currentUserId) → ActivityData -
Available on ActivityData, provided by the ActivityDataMutations extension
Removes a reaction from the activity, updating the latest reactions, reaction groups, reaction count, and own reactions.