Attributes
public struct Attributes : Codable
A root object that stores information about a single feed message, such as the message’s content, and whether it’s a spoiler or NSFW.
-
The content of the feed message.
Declaration
Swift
public var content: String
-
The HTML content of the feed message.
Declaration
Swift
public var contentHTML: String
-
The Markdown content of the feed message.
Declaration
Swift
public var contentMarkdown: String
-
The metrics of the feed message.
Declaration
Swift
public var metrics: FeedMessage.Attributes.Metrics
-
Whether the feed message is hearted by the authenticated user.
Declaration
Swift
public var isHearted: Bool?
-
Whether the feed message is a reply.
Declaration
Swift
public let isReply: Bool
-
Whether the feed message is a re-share.
Declaration
Swift
public let isReShare: Bool
-
Whether the feed message is a re-shared by the authenticated user.
Declaration
Swift
public let isReShared: Bool
-
Whether the feed message is NSFW.
Declaration
Swift
public var isNSFW: Bool
-
Whether the feed message is spoiler.
Declaration
Swift
public var isSpoiler: Bool
-
The date the feed message was created at.
Declaration
Swift
public let createdAt: Date
-
Updates the message’s attribute with the given
FeedMessageUpdate
object.Declaration
Swift
public mutating func update(using feedMessageUpdate: FeedMessageUpdate)
Parameters
feedMessageUpdate
The object containing the new attribute values.
-
A root object that stores information about a single feed message metrics, such as the message’s total hearts count, and replies count.
See moreDeclaration
Swift
public struct Metrics : Codable