Attributes
public struct Attributes : Codable
A root object that stores information about a single episode, such as the episodes’s number, name, and air date.
-
The link to a poster image of the episode.
Declaration
Swift
public let poster: Media?
-
The link to a banner image of the episode.
Declaration
Swift
public let banner: Media?
-
The in season number of the episode.
Declaration
Swift
public let number: Int
-
The total number of the episode.
Declaration
Swift
public let numberTotal: Int
-
The title of the episodes.
Declaration
Swift
public let title: String
-
The duration of the episode.
Declaration
Swift
public let duration: String
-
The stats of the episode.
Declaration
Swift
public let stats: MediaStat?
-
The air date of the episode.
Declaration
Swift
public let startedAt: Date?
-
The synopsis text of the episode.
Declaration
Swift
public let synopsis: String?
-
Whether the episode is a filler.
Declaration
Swift
public let isFiller: Bool
-
Whether the episode details have been verified.
Declaration
Swift
public let isVerified: Bool
-
The rating given by the authenticated user.
Declaration
Swift
public var givenRating: Double?
-
The watch status of the episode.
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) -> Episode.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.