FeedMessageRequest
public struct FeedMessageRequest
A root object that stores information about a feed message request.
-
The content of the feed message.
Declaration
Swift
public let content: String
-
The identity of the parent message this message is related to.
Declaration
Swift
public let parentIdentity: FeedMessageIdentity?
-
Whether the message is a reply to another message.
Declaration
Swift
public let isReply: Bool?
-
Whether the message is a re-share of another message.
Declaration
Swift
public let isReShare: Bool?
-
Whether the message contains NSFW material.
Declaration
Swift
public let isNSFW: Bool
-
Whether the message contains spoiler material.
Declaration
Swift
public let isSpoiler: Bool
-
Initialize a new instance of
FeedMessageRequest
to request posting a new feed message.Declaration
Swift
public init(content: String, parentIdentity: FeedMessageIdentity?, isReply: Bool?, isReShare: Bool?, isNSFW: Bool, isSpoiler: Bool)
Parameters
content
The new content of the feed message.
parentIdentity
The identity of the parent message this message is related to.
isReply
Whether the message is a reply to another message. Required if
parentIdentity
is specified.isReShare
Whether the message is a re-share of another message. Required if
parentIdentity
is specified.isNSFW
Whether the message contains NSFW material.
isSpoiler
Whether the message contains spoiler material.