Activity

Activity

# new Activity(activityMap)

Creates a new Activity
Parameters:
Name Type Description
activityMap object Activity parameters
Properties
Name Type Attributes Default Description
id string ID
text string <optional>
Text
author User Author
mediaAttachments Array.<MediaAttachment> <optional>
[] Attachments
button ActivityButton <optional>
Button
type string <optional>
Type
isAnnouncement boolean <optional>
false True if is an announcement
commentsCount number <optional>
0 Amount of comments
comments Array.<Activity> <optional>
[] Comments (only included if includeComments is defined in the ActivitiesQuery)
reactionsCount Object.<string, number> <optional>
{} Amount of reactions per kind
myReactions Array.<string> <optional>
[] Current user's reactions
reactions Array.<UserReactions> <optional>
[] Reactions
commenters Array.<User> <optional>
[] Commenters
properties Object.<string, string> <optional>
{} Properties
createdAt number <optional>
0 Date when activity was created (UNIX timestamp)
mentions Array.<Mention> <optional>
[] Users mentions
source CommunitiesEntity <optional>
Entity source
status string Status
poll Poll <optional>
Poll
popularity number <optional>
0 Popularity
labels Array.<string> <optional>
[] Labels
isBookmarked boolean <optional>
false True if is bookmarked
bookmarksCount number <optional>
0 Amount of bookmarks