Attributes
public struct Attributes : Codable
A root object that stores information about a single season, such as the season’s title, number, and episodes count.
-
The link to a poster of the season.
Declaration
Swift
public let poster: Media?
-
The number of the season.
Declaration
Swift
public let number: Int
-
The title of the season.
Declaration
Swift
public let title: String
-
The synopsis of the season.
Declaration
Swift
public let synopsis: String?
-
The episode count of the season.
Declaration
Swift
public let episodeCount: Int
-
The premiere date of the season.
Declaration
Swift
public let startedAt: Date?
-
The watch status of the season.
Declaration
Swift
public var watchStatus: WatchStatus? { get set }
-
Updates the attributes with the given
WatchStatus
object.Declaration
Swift
public mutating func update(using watchStatus: WatchStatus)
Parameters
watchStatus
The
WatchStatus
object used to update the attributes. -
Returns a copy of the object with the updated attributes from the given
WatchStatus
object.Declaration
Swift
public mutating func updated(using watchStatus: WatchStatus) -> Season.Attributes
Parameters
watchStatus
The
WatchStatus
object used to update the attributes.Return Value
a copy of the object with the updated attributes from the given
WatchStatus
object.