mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
34 lines
1.3 KiB
Swift
34 lines
1.3 KiB
Swift
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetLibraryRequest: APIValue {
|
|
/// the Id of the library to query
|
|
@DecimalSerialized
|
|
public private(set) var sectionId: Double
|
|
/// Whether or not to include details for a section (types, filters, and sorts).
|
|
/// Only exists for backwards compatibility, media providers other than the server libraries have it on always.
|
|
///
|
|
public let includeDetails: Operations.IncludeDetails?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter sectionId: the Id of the library to query
|
|
/// - Parameter includeDetails: Whether or not to include details for a section (types, filters, and sorts).
|
|
/// Only exists for backwards compatibility, media providers other than the server libraries have it on always.
|
|
///
|
|
///
|
|
public init(sectionId: Double, includeDetails: Operations.IncludeDetails? = nil) {
|
|
self._sectionId = DecimalSerialized<Double>(wrappedValue: sectionId)
|
|
self.includeDetails = includeDetails
|
|
}
|
|
}
|
|
}
|
|
extension Operations.GetLibraryRequest {
|
|
var sectionIdWrapper: DecimalSerialized<Double> {
|
|
return _sectionId
|
|
}
|
|
}
|