PostData
public struct PostData : Content
Used to return a ForumPost‘s data.
Returned by:
POST /api/v3/forum/ID/createPOST /api/v3/forum/post/ID/updatePOST /api/v3/forum/post/ID/imagePOST /api/v3/forum/post/ID/image/removeGET /api/v3/forum/ID/search/STRINGGET /api/v3/forum/post/search/STRINGPOST /api/v3/forum/post/ID/laughPOST /api/v3/forum/post/ID/likePOST /api/v3/forum/post/ID/lovePOST /api/v3/forum/post/ID/unreactGET /api/v3/forum/bookmarksGET /api/v3/forum/likesGET /api/v3/forum/mentionsGET /api/v3/forum/postsGET /api/v3/forum/post/hashtag/#STRING
See ForumController.postCreateHandler(_:data:), ForumController.postUpdateHandler(_:data:),
ForumController.imageHandler(_:data:), ForumController.imageRemoveHandler(_:),
ForumController.forumSearchHandler(_:), ForumController.postSearchHandler(_:)
ForumController.postLaughHandler(_:), ForumController.postLikeHandler(_:)
ForumController.postLoveHandler(_:), ForumController.postUnreactHandler(_:),
ForumController.bookmarksHandler(_:), ForumCOntroller.likesHandler(_:),
ForumController.mentionsHandler(_:), ForumController.postsHandler(_:),
ForumController.postHashtagHandler(_:).
-
The ID of the post.
Declaration
Swift
var postID: Int -
The timestamp of the post.
Declaration
Swift
var createdAt: Date -
The post’s author.
Declaration
Swift
var author: UserHeader -
The text of the post.
Declaration
Swift
var text: String -
The filenames of the post’s optional images.
Declaration
Swift
var images: [String]? -
Whether the current user has bookmarked the post.
Declaration
Swift
var isBookmarked: Bool -
The total number of
LikeTypereactions on the post.Declaration
Swift
var likeCount: Int -
Whether the post has been pinned to the forum.
Declaration
Swift
var isPinned: Bool? -
Declaration
Swift
init( post: ForumPost, author: UserHeader, bookmarked: Bool, userLike: LikeType?, likeCount: Int, overrideQuarantine: Bool = false ) throws -
Declaration
Swift
init(post: ForumPost, author: UserHeader) throws
View on GitHub