Domain Documentation

Class Articles​And​Author​With​Favorited​Row

public final class ArticlesAndAuthorWithFavoritedRow: Codable  

Representation of a row combining Articles and authors and favorite information about them.

ArticlesAndAuthorWithFavoritedRow ArticlesAndAuthorWithFavoritedRow Codable Codable ArticlesAndAuthorWithFavoritedRow->Codable

Conforms To

Codable

Initializers

init(id:​slug:​title:​description:​body:​favorites​Count:​favorited:​author:​created​At:​updated​At:​username:​bio:​image:​following:​tag​CSV:​)

public init( id: Int?, slug: String, title: String, description: String, body: String, favoritesCount: Int, favorited: Bool?, author: Int, createdAt: Date = Date(), updatedAt: Date = Date(), username: String, bio: String, image: String, following: Bool?, tagCSV: String? )  

Default initializer.

Properties

id

public let id: Int? 

Same as Articles's id.

slug

public let slug: String

Same as Articles's slug.

title

public let title: String

Same as Articles's title.

description

public let description: String

Same as Articles's description.

body

public let body: String

Same as Articles's body.

created​At

public let createdAt: Date

Same as Articles's createdAt.

updated​At

public let updatedAt: Date

Same as Articles's updatedAt.

favorites​Count

public let favoritesCount: Int

Total number of Articles favorited.

favorited

public let favorited: Bool? 

Whether the person who read this article favorite the article.

username

public let username: String

Same as Users's username.

bio

public let bio: String

Same as Users's bio.

image

public let image: String

Same as Users's image.

following

public let following: Bool? 

Whether the author of the article is followed.

tag​CSV

public let tagCSV: String? 

Comma-separated string of tag set attached to article.