ActivityObject
public enum ActivityObject : ActivityObjectProtocol
An activity object with several subtypes: text, image, reposted activity, following user.
-
Undocumented
Declaration
Swift
case unknown
-
Undocumented
Declaration
Swift
case text(_: String)
-
Undocumented
Declaration
Swift
case image(_: URL)
-
Undocumented
Declaration
Swift
case repost(_: Activity)
-
Undocumented
Declaration
Swift
case following(_: User)
-
Declaration
Swift
public var referenceId: String { get }
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public var isMissedReference: Bool { get }
-
Declaration
Swift
public static func missed() -> ActivityObject
-
A text, if the object contains the text.
Declaration
Swift
public var text: String? { get }
-
An image URL, if the object contains the image URL.
Declaration
Swift
public var imageURL: URL? { get }