mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-07 12:47:45 +00:00
migrated to v15
This commit is contained in:
33
Sources/Plexswift/models/operations/GetLibraryRequest.swift
Normal file
33
Sources/Plexswift/models/operations/GetLibraryRequest.swift
Normal file
@@ -0,0 +1,33 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user