Post
public struct Post : Codable, Equatable
Struct representing Post related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
List of thumb images to display.
Declaration
Swift
public var attachmentThumbs: [String]
-
List of asset URLs (photo or video).
Declaration
Swift
public var attachmentUrls: [String]
-
Content of the post.
Declaration
Swift
public var body: String
-
Specifies the total comment count.
Declaration
Swift
public var commentCount: Int
-
Specifies when the commentw was created.
Declaration
Swift
public var createdAt: String
-
Determines if the post is reported.
Declaration
Swift
public var flagged: String
-
Specifies the internal url of the content that can be shared.
Declaration
Swift
public var internalUrl: String
-
Specifies if the comment is liked.
Declaration
Swift
public var isLiked: Bool
-
Specifies if the user is the owner of the post.
Declaration
Swift
public var isOwner: Bool
-
Specifies if this is a pinned post.
Declaration
Swift
public var isPinned: Bool
-
Specifies the total like count.
Declaration
Swift
public var likeCount: Int
-
Specifies the owner of the user.
Declaration
Swift
public var owner: Post.Owner?
-
Specifies the url that can be shared.
Declaration
Swift
public var targetUrl: String
-
init(id:
attachmentThumbs: attachmentUrls: body: commentCount: createdAt: flagged: internalUrl: isLiked: isOwner: isPinned: likeCount: owner: targetUrl: ) Undocumented
Declaration
Swift
public init(id: Int, attachmentThumbs: [String], attachmentUrls: [String], body: String, commentCount: Int, createdAt: String, flagged: String, internalUrl: String, isLiked: Bool, isOwner: Bool, isPinned: Bool, likeCount: Int, owner: Post.Owner?, targetUrl: String)
-
Struct representing Post Owner related values.
See moreDeclaration
Swift
public struct Owner : Codable, Equatable
-
Struct representing Post Flag related values.
See moreDeclaration
Swift
public struct Flag : Codable, Equatable
-
Declaration
Swift
public init(from decoder: Decoder) throws