Activity
public final class Activity : EnrichedActivity<User, ActivityObject, Reaction>, TextRepresentable, AttachmentRepresentable
An enriched activity with User
type, ActivityObject
as object type and Reaction
as reation type.
It has additional properties: text and attachment. See AttachmentRepresentable
.
-
Undocumented
Declaration
Swift
public var text: String?
-
Declaration
Swift
public var attachment: ActivityAttachment?
-
Undocumented
Declaration
Swift
public var original: Activity { get }
-
Undocumented
Declaration
Swift
public init(actor: User, verb: Verb, object: ActivityObject, feedIds: FeedIds? = nil)
-
Declaration
Swift
required public init(actor: User, verb: Verb, object: ActivityObject, foreignId: String? = nil, time: Date? = nil, feedIds: FeedIds? = nil, originFeedId: FeedId? = nil)
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
public override func encode(to encoder: Encoder) throws