mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-07 04:20:54 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6
This commit is contained in:
@@ -5,23 +5,13 @@ import Foundation
|
||||
extension Operations {
|
||||
/// A model object
|
||||
public struct GetMediaMetaDataMetadata {
|
||||
/// Unix timestamp when the item was added.
|
||||
public let addedAt: Int
|
||||
/// URL of the art image.
|
||||
public let art: String
|
||||
/// The audience rating for the content.
|
||||
@DecimalSerialized
|
||||
public private(set) var audienceRating: Double
|
||||
/// The URL for the audience rating image.
|
||||
public let audienceRatingImage: String
|
||||
/// The content rating (e.g., TV-MA).
|
||||
public let contentRating: String
|
||||
/// Duration of the content in milliseconds.
|
||||
public let duration: Int
|
||||
/// The globally unique identifier for the item.
|
||||
public let guid: String
|
||||
/// An array of GUID objects.
|
||||
public let guids: [Operations.Guids]
|
||||
/// An array of image objects.
|
||||
public let image: [Operations.GetMediaMetaDataImage]
|
||||
/// The API key to access metadata details.
|
||||
@@ -32,11 +22,6 @@ extension Operations {
|
||||
public let librarySectionKey: String
|
||||
/// The title of the library section.
|
||||
public let librarySectionTitle: String
|
||||
/// The original release date.
|
||||
@DateOnly
|
||||
public private(set) var originallyAvailableAt: Date
|
||||
/// An array of rating objects.
|
||||
public let rating: [Operations.Rating]
|
||||
/// The rating key of the metadata item.
|
||||
public let ratingKey: String
|
||||
/// A summary of the content.
|
||||
@@ -48,13 +33,19 @@ extension Operations {
|
||||
/// The type of content (e.g., show, movie).
|
||||
public let type: String
|
||||
public let ultraBlurColors: Operations.GetMediaMetaDataUltraBlurColors
|
||||
/// Unix timestamp when the item was last updated.
|
||||
public let updatedAt: Int
|
||||
/// The release year.
|
||||
public let year: Int
|
||||
/// The audience rating for the content.
|
||||
@DecimalSerialized
|
||||
public private(set) var audienceRating: Double?
|
||||
/// The URL for the audience rating image.
|
||||
public let audienceRatingImage: String?
|
||||
public let chapterSource: String?
|
||||
/// The number of child items.
|
||||
public let childCount: Int?
|
||||
/// The content rating (e.g., TV-MA).
|
||||
public let contentRating: String?
|
||||
/// An array of country tags.
|
||||
public let country: [Operations.GetMediaMetaDataCountry]?
|
||||
/// An array of Director roles.
|
||||
@@ -75,6 +66,8 @@ extension Operations {
|
||||
public let grandparentThumb: String?
|
||||
/// The title of the grandparent entity (typically the show's title).
|
||||
public let grandparentTitle: String?
|
||||
/// An array of GUID objects.
|
||||
public let guids: [Operations.GetMediaMetaDataGuids]?
|
||||
/// The index or order of the item.
|
||||
public let index: Int?
|
||||
/// Unix timestamp of when the item was last viewed.
|
||||
@@ -84,6 +77,9 @@ extension Operations {
|
||||
/// An array of location objects.
|
||||
public let location: [Operations.GetMediaMetaDataLocation]?
|
||||
public let media: [Operations.GetMediaMetaDataMedia]?
|
||||
/// The original release date.
|
||||
@DateOnly
|
||||
public private(set) var originallyAvailableAt: Date?
|
||||
/// The original title of the content.
|
||||
public let originalTitle: String?
|
||||
/// A GUID identifying the parent entity (e.g., season) for the item.
|
||||
@@ -101,6 +97,13 @@ extension Operations {
|
||||
public let primaryExtraKey: String?
|
||||
/// An array of Writer roles.
|
||||
public let producer: [Operations.Producer]?
|
||||
/// The general rating
|
||||
@DecimalSerialized
|
||||
public private(set) var rating: Double?
|
||||
/// The URL or identifier for the rating image (e.g., Rotten Tomatoes rating image).
|
||||
public let ratingImage: String?
|
||||
/// An array of rating objects.
|
||||
public let ratings: [Operations.Ratings]?
|
||||
/// An array of Actor roles.
|
||||
public let role: [Operations.GetMediaMetaDataRole]?
|
||||
/// An array of similar content objects.
|
||||
@@ -124,29 +127,24 @@ extension Operations {
|
||||
|
||||
/// Creates an object with the specified parameters
|
||||
///
|
||||
/// - Parameter addedAt: Unix timestamp when the item was added.
|
||||
/// - Parameter art: URL of the art image.
|
||||
/// - Parameter audienceRating: The audience rating for the content.
|
||||
/// - Parameter audienceRatingImage: The URL for the audience rating image.
|
||||
/// - Parameter contentRating: The content rating (e.g., TV-MA).
|
||||
/// - Parameter duration: Duration of the content in milliseconds.
|
||||
/// - Parameter guid: The globally unique identifier for the item.
|
||||
/// - Parameter guids: An array of GUID objects.
|
||||
/// - Parameter image: An array of image objects.
|
||||
/// - Parameter key: The API key to access metadata details.
|
||||
/// - Parameter librarySectionID: The ID of the library section.
|
||||
/// - Parameter librarySectionKey: The key of the library section.
|
||||
/// - Parameter librarySectionTitle: The title of the library section.
|
||||
/// - Parameter originallyAvailableAt: The original release date.
|
||||
/// - Parameter rating: An array of rating objects.
|
||||
/// - Parameter ratingKey: The rating key of the metadata item.
|
||||
/// - Parameter summary: A summary of the content.
|
||||
/// - Parameter thumb: URL of the thumbnail image.
|
||||
/// - Parameter title: The title of the content.
|
||||
/// - Parameter type: The type of content (e.g., show, movie).
|
||||
/// - Parameter updatedAt: Unix timestamp when the item was last updated.
|
||||
/// - Parameter year: The release year.
|
||||
/// - Parameter audienceRating: The audience rating for the content.
|
||||
/// - Parameter audienceRatingImage: The URL for the audience rating image.
|
||||
/// - Parameter childCount: The number of child items.
|
||||
/// - Parameter contentRating: The content rating (e.g., TV-MA).
|
||||
/// - Parameter country: An array of country tags.
|
||||
/// - Parameter director: An array of Director roles.
|
||||
/// - Parameter genre: An array of genre tags.
|
||||
@@ -157,10 +155,12 @@ extension Operations {
|
||||
/// - Parameter grandparentSlug: A URL-friendly identifier (slug) for the grandparent entity.
|
||||
/// - Parameter grandparentThumb: The URL of the grandparent's thumbnail image.
|
||||
/// - Parameter grandparentTitle: The title of the grandparent entity (typically the show's title).
|
||||
/// - Parameter guids: An array of GUID objects.
|
||||
/// - Parameter index: The index or order of the item.
|
||||
/// - Parameter lastViewedAt: Unix timestamp of when the item was last viewed.
|
||||
/// - Parameter leafCount: The total number of episodes (or leaves).
|
||||
/// - Parameter location: An array of location objects.
|
||||
/// - Parameter originallyAvailableAt: The original release date.
|
||||
/// - Parameter originalTitle: The original title of the content.
|
||||
/// - Parameter parentGuid: A GUID identifying the parent entity (e.g., season) for the item.
|
||||
/// - Parameter parentIndex: The index number of the parent entity, which could indicate its order or position.
|
||||
@@ -169,6 +169,9 @@ extension Operations {
|
||||
/// - Parameter parentThumb: The URL of the parent's thumbnail image.
|
||||
/// - Parameter parentTitle: The title of the parent entity (typically the season's title).
|
||||
/// - Parameter producer: An array of Writer roles.
|
||||
/// - Parameter rating: The general rating
|
||||
/// - Parameter ratingImage: The URL or identifier for the rating image (e.g., Rotten Tomatoes rating image).
|
||||
/// - Parameter ratings: An array of rating objects.
|
||||
/// - Parameter role: An array of Actor roles.
|
||||
/// - Parameter similar: An array of similar content objects.
|
||||
/// - Parameter skipCount: The number of times the item has been skipped.
|
||||
@@ -180,22 +183,16 @@ extension Operations {
|
||||
/// - Parameter viewedLeafCount: The number of episodes that have been viewed.
|
||||
/// - Parameter writer: An array of Writer roles.
|
||||
///
|
||||
public init(addedAt: Int, art: String, audienceRating: Double, audienceRatingImage: String, contentRating: String, duration: Int, guid: String, guids: [Operations.Guids], image: [Operations.GetMediaMetaDataImage], key: String, librarySectionID: Int, librarySectionKey: String, librarySectionTitle: String, originallyAvailableAt: Date, rating: [Operations.Rating], ratingKey: String, summary: String, thumb: String, title: String, type: String, ultraBlurColors: Operations.GetMediaMetaDataUltraBlurColors, updatedAt: Int, year: Int, chapterSource: String? = nil, childCount: Int? = nil, country: [Operations.GetMediaMetaDataCountry]? = nil, director: [Operations.GetMediaMetaDataDirector]? = nil, genre: [Operations.GetMediaMetaDataGenre]? = nil, grandparentArt: String? = nil, grandparentGuid: String? = nil, grandparentKey: String? = nil, grandparentRatingKey: String? = nil, grandparentSlug: String? = nil, grandparentThumb: String? = nil, grandparentTitle: String? = nil, index: Int? = nil, lastViewedAt: Int? = nil, leafCount: Int? = nil, location: [Operations.GetMediaMetaDataLocation]? = nil, media: [Operations.GetMediaMetaDataMedia]? = nil, originalTitle: String? = nil, parentGuid: String? = nil, parentIndex: Int? = nil, parentKey: String? = nil, parentRatingKey: String? = nil, parentThumb: String? = nil, parentTitle: String? = nil, primaryExtraKey: String? = nil, producer: [Operations.Producer]? = nil, role: [Operations.GetMediaMetaDataRole]? = nil, similar: [Operations.Similar]? = nil, skipCount: Int? = nil, slug: String? = nil, studio: String? = nil, tagline: String? = nil, theme: String? = nil, viewCount: Int? = nil, viewedLeafCount: Int? = nil, writer: [Operations.GetMediaMetaDataWriter]? = nil) {
|
||||
public init(addedAt: Int, art: String, duration: Int, guid: String, image: [Operations.GetMediaMetaDataImage], key: String, librarySectionID: Int, librarySectionKey: String, librarySectionTitle: String, ratingKey: String, summary: String, thumb: String, title: String, type: String, ultraBlurColors: Operations.GetMediaMetaDataUltraBlurColors, updatedAt: Int, year: Int, audienceRating: Double? = nil, audienceRatingImage: String? = nil, chapterSource: String? = nil, childCount: Int? = nil, contentRating: String? = nil, country: [Operations.GetMediaMetaDataCountry]? = nil, director: [Operations.GetMediaMetaDataDirector]? = nil, genre: [Operations.GetMediaMetaDataGenre]? = nil, grandparentArt: String? = nil, grandparentGuid: String? = nil, grandparentKey: String? = nil, grandparentRatingKey: String? = nil, grandparentSlug: String? = nil, grandparentThumb: String? = nil, grandparentTitle: String? = nil, guids: [Operations.GetMediaMetaDataGuids]? = nil, index: Int? = nil, lastViewedAt: Int? = nil, leafCount: Int? = nil, location: [Operations.GetMediaMetaDataLocation]? = nil, media: [Operations.GetMediaMetaDataMedia]? = nil, originallyAvailableAt: Date? = nil, originalTitle: String? = nil, parentGuid: String? = nil, parentIndex: Int? = nil, parentKey: String? = nil, parentRatingKey: String? = nil, parentThumb: String? = nil, parentTitle: String? = nil, primaryExtraKey: String? = nil, producer: [Operations.Producer]? = nil, rating: Double? = nil, ratingImage: String? = nil, ratings: [Operations.Ratings]? = nil, role: [Operations.GetMediaMetaDataRole]? = nil, similar: [Operations.Similar]? = nil, skipCount: Int? = nil, slug: String? = nil, studio: String? = nil, tagline: String? = nil, theme: String? = nil, viewCount: Int? = nil, viewedLeafCount: Int? = nil, writer: [Operations.GetMediaMetaDataWriter]? = nil) {
|
||||
self.addedAt = addedAt
|
||||
self.art = art
|
||||
self._audienceRating = DecimalSerialized<Double>(wrappedValue: audienceRating)
|
||||
self.audienceRatingImage = audienceRatingImage
|
||||
self.contentRating = contentRating
|
||||
self.duration = duration
|
||||
self.guid = guid
|
||||
self.guids = guids
|
||||
self.image = image
|
||||
self.key = key
|
||||
self.librarySectionID = librarySectionID
|
||||
self.librarySectionKey = librarySectionKey
|
||||
self.librarySectionTitle = librarySectionTitle
|
||||
self._originallyAvailableAt = DateOnly<Date>(wrappedValue: originallyAvailableAt)
|
||||
self.rating = rating
|
||||
self.ratingKey = ratingKey
|
||||
self.summary = summary
|
||||
self.thumb = thumb
|
||||
@@ -204,8 +201,11 @@ extension Operations {
|
||||
self.ultraBlurColors = ultraBlurColors
|
||||
self.updatedAt = updatedAt
|
||||
self.year = year
|
||||
self._audienceRating = DecimalSerialized<Double?>(wrappedValue: audienceRating)
|
||||
self.audienceRatingImage = audienceRatingImage
|
||||
self.chapterSource = chapterSource
|
||||
self.childCount = childCount
|
||||
self.contentRating = contentRating
|
||||
self.country = country
|
||||
self.director = director
|
||||
self.genre = genre
|
||||
@@ -216,11 +216,13 @@ extension Operations {
|
||||
self.grandparentSlug = grandparentSlug
|
||||
self.grandparentThumb = grandparentThumb
|
||||
self.grandparentTitle = grandparentTitle
|
||||
self.guids = guids
|
||||
self.index = index
|
||||
self.lastViewedAt = lastViewedAt
|
||||
self.leafCount = leafCount
|
||||
self.location = location
|
||||
self.media = media
|
||||
self._originallyAvailableAt = DateOnly<Date?>(wrappedValue: originallyAvailableAt)
|
||||
self.originalTitle = originalTitle
|
||||
self.parentGuid = parentGuid
|
||||
self.parentIndex = parentIndex
|
||||
@@ -230,6 +232,9 @@ extension Operations {
|
||||
self.parentTitle = parentTitle
|
||||
self.primaryExtraKey = primaryExtraKey
|
||||
self.producer = producer
|
||||
self._rating = DecimalSerialized<Double?>(wrappedValue: rating)
|
||||
self.ratingImage = ratingImage
|
||||
self.ratings = ratings
|
||||
self.role = role
|
||||
self.similar = similar
|
||||
self.skipCount = skipCount
|
||||
@@ -247,19 +252,13 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case addedAt
|
||||
case art
|
||||
case audienceRating
|
||||
case audienceRatingImage
|
||||
case contentRating
|
||||
case duration
|
||||
case guid
|
||||
case guids = "Guid"
|
||||
case image = "Image"
|
||||
case key
|
||||
case librarySectionID
|
||||
case librarySectionKey
|
||||
case librarySectionTitle
|
||||
case originallyAvailableAt
|
||||
case rating = "Rating"
|
||||
case ratingKey
|
||||
case summary
|
||||
case thumb
|
||||
@@ -268,8 +267,11 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
case ultraBlurColors = "UltraBlurColors"
|
||||
case updatedAt
|
||||
case year
|
||||
case audienceRating
|
||||
case audienceRatingImage
|
||||
case chapterSource
|
||||
case childCount
|
||||
case contentRating
|
||||
case country = "Country"
|
||||
case director = "Director"
|
||||
case genre = "Genre"
|
||||
@@ -280,11 +282,13 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
case grandparentSlug
|
||||
case grandparentThumb
|
||||
case grandparentTitle
|
||||
case guids = "Guid"
|
||||
case index
|
||||
case lastViewedAt
|
||||
case leafCount
|
||||
case location = "Location"
|
||||
case media = "Media"
|
||||
case originallyAvailableAt
|
||||
case originalTitle
|
||||
case parentGuid
|
||||
case parentIndex
|
||||
@@ -294,6 +298,9 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
case parentTitle
|
||||
case primaryExtraKey
|
||||
case producer = "Producer"
|
||||
case rating
|
||||
case ratingImage
|
||||
case ratings = "Rating"
|
||||
case role = "Role"
|
||||
case similar = "Similar"
|
||||
case skipCount
|
||||
@@ -310,19 +317,13 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||
self.addedAt = try container.decode(Int.self, forKey: .addedAt)
|
||||
self.art = try container.decode(String.self, forKey: .art)
|
||||
self._audienceRating = try container.decode(DecimalSerialized<Double>.self, forKey: .audienceRating)
|
||||
self.audienceRatingImage = try container.decode(String.self, forKey: .audienceRatingImage)
|
||||
self.contentRating = try container.decode(String.self, forKey: .contentRating)
|
||||
self.duration = try container.decode(Int.self, forKey: .duration)
|
||||
self.guid = try container.decode(String.self, forKey: .guid)
|
||||
self.guids = try container.decode([Operations.Guids].self, forKey: .guids)
|
||||
self.image = try container.decode([Operations.GetMediaMetaDataImage].self, forKey: .image)
|
||||
self.key = try container.decode(String.self, forKey: .key)
|
||||
self.librarySectionID = try container.decode(Int.self, forKey: .librarySectionID)
|
||||
self.librarySectionKey = try container.decode(String.self, forKey: .librarySectionKey)
|
||||
self.librarySectionTitle = try container.decode(String.self, forKey: .librarySectionTitle)
|
||||
self._originallyAvailableAt = try container.decode(DateOnly<Date>.self, forKey: .originallyAvailableAt)
|
||||
self.rating = try container.decode([Operations.Rating].self, forKey: .rating)
|
||||
self.ratingKey = try container.decode(String.self, forKey: .ratingKey)
|
||||
self.summary = try container.decode(String.self, forKey: .summary)
|
||||
self.thumb = try container.decode(String.self, forKey: .thumb)
|
||||
@@ -331,8 +332,11 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
self.ultraBlurColors = try container.decode(Operations.GetMediaMetaDataUltraBlurColors.self, forKey: .ultraBlurColors)
|
||||
self.updatedAt = try container.decode(Int.self, forKey: .updatedAt)
|
||||
self.year = try container.decode(Int.self, forKey: .year)
|
||||
self._audienceRating = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .audienceRating) ?? DecimalSerialized<Double?>(wrappedValue: nil)
|
||||
self.audienceRatingImage = try container.decodeIfPresent(String.self, forKey: .audienceRatingImage)
|
||||
self.chapterSource = try container.decodeIfPresent(String.self, forKey: .chapterSource)
|
||||
self.childCount = try container.decodeIfPresent(Int.self, forKey: .childCount)
|
||||
self.contentRating = try container.decodeIfPresent(String.self, forKey: .contentRating)
|
||||
self.country = try container.decodeIfPresent([Operations.GetMediaMetaDataCountry].self, forKey: .country)
|
||||
self.director = try container.decodeIfPresent([Operations.GetMediaMetaDataDirector].self, forKey: .director)
|
||||
self.genre = try container.decodeIfPresent([Operations.GetMediaMetaDataGenre].self, forKey: .genre)
|
||||
@@ -343,11 +347,13 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
self.grandparentSlug = try container.decodeIfPresent(String.self, forKey: .grandparentSlug)
|
||||
self.grandparentThumb = try container.decodeIfPresent(String.self, forKey: .grandparentThumb)
|
||||
self.grandparentTitle = try container.decodeIfPresent(String.self, forKey: .grandparentTitle)
|
||||
self.guids = try container.decodeIfPresent([Operations.GetMediaMetaDataGuids].self, forKey: .guids)
|
||||
self.index = try container.decodeIfPresent(Int.self, forKey: .index)
|
||||
self.lastViewedAt = try container.decodeIfPresent(Int.self, forKey: .lastViewedAt)
|
||||
self.leafCount = try container.decodeIfPresent(Int.self, forKey: .leafCount)
|
||||
self.location = try container.decodeIfPresent([Operations.GetMediaMetaDataLocation].self, forKey: .location)
|
||||
self.media = try container.decodeIfPresent([Operations.GetMediaMetaDataMedia].self, forKey: .media)
|
||||
self._originallyAvailableAt = try container.decodeIfPresent(DateOnly<Date?>.self, forKey: .originallyAvailableAt) ?? DateOnly<Date?>(wrappedValue: nil)
|
||||
self.originalTitle = try container.decodeIfPresent(String.self, forKey: .originalTitle)
|
||||
self.parentGuid = try container.decodeIfPresent(String.self, forKey: .parentGuid)
|
||||
self.parentIndex = try container.decodeIfPresent(Int.self, forKey: .parentIndex)
|
||||
@@ -357,6 +363,9 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
self.parentTitle = try container.decodeIfPresent(String.self, forKey: .parentTitle)
|
||||
self.primaryExtraKey = try container.decodeIfPresent(String.self, forKey: .primaryExtraKey)
|
||||
self.producer = try container.decodeIfPresent([Operations.Producer].self, forKey: .producer)
|
||||
self._rating = try container.decodeIfPresent(DecimalSerialized<Double?>.self, forKey: .rating) ?? DecimalSerialized<Double?>(wrappedValue: nil)
|
||||
self.ratingImage = try container.decodeIfPresent(String.self, forKey: .ratingImage)
|
||||
self.ratings = try container.decodeIfPresent([Operations.Ratings].self, forKey: .ratings)
|
||||
self.role = try container.decodeIfPresent([Operations.GetMediaMetaDataRole].self, forKey: .role)
|
||||
self.similar = try container.decodeIfPresent([Operations.Similar].self, forKey: .similar)
|
||||
self.skipCount = try container.decodeIfPresent(Int.self, forKey: .skipCount)
|
||||
@@ -373,19 +382,13 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
||||
try container.encode(self.addedAt, forKey: .addedAt)
|
||||
try container.encode(self.art, forKey: .art)
|
||||
try container.encode(self._audienceRating, forKey: .audienceRating)
|
||||
try container.encode(self.audienceRatingImage, forKey: .audienceRatingImage)
|
||||
try container.encode(self.contentRating, forKey: .contentRating)
|
||||
try container.encode(self.duration, forKey: .duration)
|
||||
try container.encode(self.guid, forKey: .guid)
|
||||
try container.encode(self.guids, forKey: .guids)
|
||||
try container.encode(self.image, forKey: .image)
|
||||
try container.encode(self.key, forKey: .key)
|
||||
try container.encode(self.librarySectionID, forKey: .librarySectionID)
|
||||
try container.encode(self.librarySectionKey, forKey: .librarySectionKey)
|
||||
try container.encode(self.librarySectionTitle, forKey: .librarySectionTitle)
|
||||
try container.encode(self._originallyAvailableAt, forKey: .originallyAvailableAt)
|
||||
try container.encode(self.rating, forKey: .rating)
|
||||
try container.encode(self.ratingKey, forKey: .ratingKey)
|
||||
try container.encode(self.summary, forKey: .summary)
|
||||
try container.encode(self.thumb, forKey: .thumb)
|
||||
@@ -394,8 +397,13 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
try container.encode(self.ultraBlurColors, forKey: .ultraBlurColors)
|
||||
try container.encode(self.updatedAt, forKey: .updatedAt)
|
||||
try container.encode(self.year, forKey: .year)
|
||||
if self.audienceRating != nil {
|
||||
try container.encode(self._audienceRating, forKey: .audienceRating)
|
||||
}
|
||||
try container.encodeIfPresent(self.audienceRatingImage, forKey: .audienceRatingImage)
|
||||
try container.encodeIfPresent(self.chapterSource, forKey: .chapterSource)
|
||||
try container.encodeIfPresent(self.childCount, forKey: .childCount)
|
||||
try container.encodeIfPresent(self.contentRating, forKey: .contentRating)
|
||||
try container.encodeIfPresent(self.country, forKey: .country)
|
||||
try container.encodeIfPresent(self.director, forKey: .director)
|
||||
try container.encodeIfPresent(self.genre, forKey: .genre)
|
||||
@@ -406,11 +414,15 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
try container.encodeIfPresent(self.grandparentSlug, forKey: .grandparentSlug)
|
||||
try container.encodeIfPresent(self.grandparentThumb, forKey: .grandparentThumb)
|
||||
try container.encodeIfPresent(self.grandparentTitle, forKey: .grandparentTitle)
|
||||
try container.encodeIfPresent(self.guids, forKey: .guids)
|
||||
try container.encodeIfPresent(self.index, forKey: .index)
|
||||
try container.encodeIfPresent(self.lastViewedAt, forKey: .lastViewedAt)
|
||||
try container.encodeIfPresent(self.leafCount, forKey: .leafCount)
|
||||
try container.encodeIfPresent(self.location, forKey: .location)
|
||||
try container.encodeIfPresent(self.media, forKey: .media)
|
||||
if self.originallyAvailableAt != nil {
|
||||
try container.encode(self._originallyAvailableAt, forKey: .originallyAvailableAt)
|
||||
}
|
||||
try container.encodeIfPresent(self.originalTitle, forKey: .originalTitle)
|
||||
try container.encodeIfPresent(self.parentGuid, forKey: .parentGuid)
|
||||
try container.encodeIfPresent(self.parentIndex, forKey: .parentIndex)
|
||||
@@ -420,6 +432,11 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
try container.encodeIfPresent(self.parentTitle, forKey: .parentTitle)
|
||||
try container.encodeIfPresent(self.primaryExtraKey, forKey: .primaryExtraKey)
|
||||
try container.encodeIfPresent(self.producer, forKey: .producer)
|
||||
if self.rating != nil {
|
||||
try container.encode(self._rating, forKey: .rating)
|
||||
}
|
||||
try container.encodeIfPresent(self.ratingImage, forKey: .ratingImage)
|
||||
try container.encodeIfPresent(self.ratings, forKey: .ratings)
|
||||
try container.encodeIfPresent(self.role, forKey: .role)
|
||||
try container.encodeIfPresent(self.similar, forKey: .similar)
|
||||
try container.encodeIfPresent(self.skipCount, forKey: .skipCount)
|
||||
@@ -434,10 +451,13 @@ extension Operations.GetMediaMetaDataMetadata: Codable {
|
||||
}
|
||||
|
||||
extension Operations.GetMediaMetaDataMetadata {
|
||||
var audienceRatingWrapper: DecimalSerialized<Double> {
|
||||
var audienceRatingWrapper: DecimalSerialized<Double?> {
|
||||
return _audienceRating
|
||||
}
|
||||
var originallyAvailableAtWrapper: DateOnly<Date> {
|
||||
var ratingWrapper: DecimalSerialized<Double?> {
|
||||
return _rating
|
||||
}
|
||||
var originallyAvailableAtWrapper: DateOnly<Date?> {
|
||||
return _originallyAvailableAt
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user