Files
plexswift/Sources/Plexswift/models/operations/GetRecentlyAddedMediaContainer.swift

58 lines
2.2 KiB
Swift

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetRecentlyAddedMediaContainer {
/// Indicates whether syncing is allowed.
public let allowSync: Bool
/// An plugin identifier for the media container.
public let identifier: String
/// Offset value for pagination.
public let offset: Int
/// Number of media items returned in this response.
public let size: Int
/// Total number of media items in the library.
public let totalSize: Int
/// The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
///
public let meta: Operations.Meta?
/// An array of metadata items.
public let metadata: [Operations.GetRecentlyAddedMetadata]?
/// Creates an object with the specified parameters
///
/// - Parameter allowSync: Indicates whether syncing is allowed.
/// - Parameter identifier: An plugin identifier for the media container.
/// - Parameter offset: Offset value for pagination.
/// - Parameter size: Number of media items returned in this response.
/// - Parameter totalSize: Total number of media items in the library.
/// - Parameter meta: The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
///
/// - Parameter metadata: An array of metadata items.
///
public init(allowSync: Bool, identifier: String, offset: Int, size: Int, totalSize: Int, meta: Operations.Meta? = nil, metadata: [Operations.GetRecentlyAddedMetadata]? = nil) {
self.allowSync = allowSync
self.identifier = identifier
self.offset = offset
self.size = size
self.totalSize = totalSize
self.meta = meta
self.metadata = metadata
}
}}
extension Operations.GetRecentlyAddedMediaContainer: Codable {
enum CodingKeys: String, CodingKey {
case allowSync
case identifier
case offset
case size
case totalSize
case meta = "Meta"
case metadata = "Metadata"
}
}