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:
@@ -19,8 +19,8 @@ extension Operations {
|
||||
public let mediaTagVersion: Int
|
||||
/// An array of metadata items.
|
||||
public let metadata: [Operations.GetMediaMetaDataMetadata]
|
||||
@DecimalSerialized
|
||||
public private(set) var size: Double
|
||||
/// Number of media items returned in this response.
|
||||
public let size: Int
|
||||
/// The universally unique identifier for the library section.
|
||||
public let librarySectionUUID: String?
|
||||
|
||||
@@ -33,9 +33,10 @@ extension Operations {
|
||||
/// - Parameter mediaTagPrefix: The prefix used for media tag resource paths.
|
||||
/// - Parameter mediaTagVersion: The version number for media tags.
|
||||
/// - Parameter metadata: An array of metadata items.
|
||||
/// - Parameter size: Number of media items returned in this response.
|
||||
/// - Parameter librarySectionUUID: The universally unique identifier for the library section.
|
||||
///
|
||||
public init(allowSync: Bool, identifier: String, librarySectionID: Int, librarySectionTitle: String, mediaTagPrefix: String, mediaTagVersion: Int, metadata: [Operations.GetMediaMetaDataMetadata], size: Double, librarySectionUUID: String? = nil) {
|
||||
public init(allowSync: Bool, identifier: String, librarySectionID: Int, librarySectionTitle: String, mediaTagPrefix: String, mediaTagVersion: Int, metadata: [Operations.GetMediaMetaDataMetadata], size: Int, librarySectionUUID: String? = nil) {
|
||||
self.allowSync = allowSync
|
||||
self.identifier = identifier
|
||||
self.librarySectionID = librarySectionID
|
||||
@@ -43,7 +44,7 @@ extension Operations {
|
||||
self.mediaTagPrefix = mediaTagPrefix
|
||||
self.mediaTagVersion = mediaTagVersion
|
||||
self.metadata = metadata
|
||||
self._size = DecimalSerialized<Double>(wrappedValue: size)
|
||||
self.size = size
|
||||
self.librarySectionUUID = librarySectionUUID
|
||||
}
|
||||
}}
|
||||
@@ -60,36 +61,5 @@ extension Operations.GetMediaMetaDataMediaContainer: Codable {
|
||||
case size
|
||||
case librarySectionUUID
|
||||
}
|
||||
|
||||
public init(from decoder: Decoder) throws {
|
||||
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||
self.allowSync = try container.decode(Bool.self, forKey: .allowSync)
|
||||
self.identifier = try container.decode(String.self, forKey: .identifier)
|
||||
self.librarySectionID = try container.decode(Int.self, forKey: .librarySectionID)
|
||||
self.librarySectionTitle = try container.decode(String.self, forKey: .librarySectionTitle)
|
||||
self.mediaTagPrefix = try container.decode(String.self, forKey: .mediaTagPrefix)
|
||||
self.mediaTagVersion = try container.decode(Int.self, forKey: .mediaTagVersion)
|
||||
self.metadata = try container.decode([Operations.GetMediaMetaDataMetadata].self, forKey: .metadata)
|
||||
self._size = try container.decode(DecimalSerialized<Double>.self, forKey: .size)
|
||||
self.librarySectionUUID = try container.decodeIfPresent(String.self, forKey: .librarySectionUUID)
|
||||
}
|
||||
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
var container = encoder.container(keyedBy: CodingKeys.self)
|
||||
try container.encode(self.allowSync, forKey: .allowSync)
|
||||
try container.encode(self.identifier, forKey: .identifier)
|
||||
try container.encode(self.librarySectionID, forKey: .librarySectionID)
|
||||
try container.encode(self.librarySectionTitle, forKey: .librarySectionTitle)
|
||||
try container.encode(self.mediaTagPrefix, forKey: .mediaTagPrefix)
|
||||
try container.encode(self.mediaTagVersion, forKey: .mediaTagVersion)
|
||||
try container.encode(self.metadata, forKey: .metadata)
|
||||
try container.encode(self._size, forKey: .size)
|
||||
try container.encodeIfPresent(self.librarySectionUUID, forKey: .librarySectionUUID)
|
||||
}
|
||||
}
|
||||
|
||||
extension Operations.GetMediaMetaDataMediaContainer {
|
||||
var sizeWrapper: DecimalSerialized<Double> {
|
||||
return _size
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user