Files
plexswift/Sources/Plexswift/models/operations/GetLibraryRequest.swift
2024-04-11 11:10:38 -05:00

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
}
}