Activity

@objcMembers
@objc(GetSocialActivity)
public class Activity : NSObject

Describe an activity instance.

  • id

    Activity id.

    Declaration

    Swift

    @objc(activityId)
    public internal(set) var id: String { get }
  • Text content.

    Declaration

    Swift

    public internal(set) var text: String? { get }
  • Author.

    Declaration

    Swift

    public internal(set) var author: User { get }
  • Media attachments.

    Declaration

    Swift

    public internal(set) var mediaAttachments: [MediaAttachment] { get }
  • Activity button.

    Declaration

    Swift

    public internal(set) var button: ActivityButton? { get }
  • Activity type.

    Declaration

    Swift

    public internal(set) var type: String? { get }
  • Activity is announcement or not.

    Declaration

    Swift

    public internal(set) var isAnnouncement: Bool { get }
  • Number of comments.

    Declaration

    Swift

    public internal(set) var commentsCount: Int { get }
  • Comments (only included if includeComments is defined in the ActivitiesQuery).

    Declaration

    Swift

    public internal(set) var comments: [Activity] { get }
  • Number of reactions by type.

    Declaration

    Swift

    public internal(set) var reactionsCount: [String : Int] { get }
  • Current user’s reactions.

    Declaration

    Swift

    public internal(set) var myReactions: [String] { get }
  • Reactions.

    Declaration

    Swift

    public internal(set) var reactions: [UserReactions] { get }
  • Bookmarked by the Current user

    Declaration

    Swift

    public internal(set) var isBookmarked: Bool { get }
  • Number of bookmarks.

    Declaration

    Swift

    public internal(set) var bookmarksCount: Int { get }
  • Commenters.

    Declaration

    Swift

    public internal(set) var commenters: Set<User> { get }
  • Custom properties.

    Declaration

    Swift

    public internal(set) var properties: [String : String] { get }
  • Date of creation as UNIX timestamp in UTC.

    Declaration

    Swift

    public internal(set) var createdAt: Int64 { get }
  • Mentions.

    Declaration

    Swift

    public internal(set) var mentions: [Mention] { get }
  • Parent of activity.

    Declaration

    Swift

    public internal(set) var source: CommunitiesEntity? { get }
  • Status of activity. For possible values check {ActivityStatus} class.

    Declaration

    Swift

    public internal(set) var status: String { get }
  • Poll

    Declaration

    Swift

    public internal(set) var poll: Poll? { get }
  • Declaration

    Swift

    public internal(set) var popularity: Double { get }
  • Declaration

    Swift

    public internal(set) var labels: [String] { get }
  • Description.

    Declaration

    Swift

    public override var description: String { get }