mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-07 20:57:47 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.308.1
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Operations {
|
||||
/// A model object
|
||||
public struct GetWatchlistRequest: APIValue {
|
||||
/// Filter
|
||||
public let filter: Operations.Filter
|
||||
/// User Token
|
||||
public let xPlexToken: String
|
||||
/// include collections in the results
|
||||
///
|
||||
public let includeCollections: Operations.IncludeCollections?
|
||||
/// include external media in the results
|
||||
///
|
||||
public let includeExternalMedia: Operations.IncludeExternalMedia?
|
||||
/// The type of library to filter. Can be "movie" or "show", or all if not present.
|
||||
///
|
||||
public let libtype: Operations.Libtype?
|
||||
/// The number of items to return. If not specified, all items will be returned.
|
||||
/// If the number of items exceeds the limit, the response will be paginated.
|
||||
///
|
||||
public let maxresults: Int?
|
||||
/// In the format "field:dir". Available fields are "watchlistedAt" (Added At),
|
||||
/// "titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating).
|
||||
/// "dir" can be "asc" or "desc"
|
||||
///
|
||||
public let sort: String?
|
||||
/// The number of items to return. If not specified, all items will be returned.
|
||||
/// If the number of items exceeds the limit, the response will be paginated.
|
||||
///
|
||||
public let xPlexContainerSize: Int?
|
||||
/// The index of the first item to return. If not specified, the first item will be returned.
|
||||
/// If the number of items exceeds the limit, the response will be paginated.
|
||||
///
|
||||
public let xPlexContainerStart: Int?
|
||||
|
||||
/// Creates an object with the specified parameters
|
||||
///
|
||||
/// - Parameter filter: Filter
|
||||
/// - Parameter xPlexToken: User Token
|
||||
/// - Parameter includeCollections: include collections in the results
|
||||
///
|
||||
/// - Parameter includeExternalMedia: include external media in the results
|
||||
///
|
||||
/// - Parameter libtype: The type of library to filter. Can be "movie" or "show", or all if not present.
|
||||
///
|
||||
/// - Parameter maxresults: The number of items to return. If not specified, all items will be returned.
|
||||
/// If the number of items exceeds the limit, the response will be paginated.
|
||||
///
|
||||
/// - Parameter sort: In the format "field:dir". Available fields are "watchlistedAt" (Added At),
|
||||
/// "titleSort" (Title), "originallyAvailableAt" (Release Date), or "rating" (Critic Rating).
|
||||
/// "dir" can be "asc" or "desc"
|
||||
///
|
||||
/// - Parameter xPlexContainerSize: The number of items to return. If not specified, all items will be returned.
|
||||
/// If the number of items exceeds the limit, the response will be paginated.
|
||||
///
|
||||
/// - Parameter xPlexContainerStart: The index of the first item to return. If not specified, the first item will be returned.
|
||||
/// If the number of items exceeds the limit, the response will be paginated.
|
||||
///
|
||||
///
|
||||
public init(filter: Operations.Filter, xPlexToken: String, includeCollections: Operations.IncludeCollections? = nil, includeExternalMedia: Operations.IncludeExternalMedia? = nil, libtype: Operations.Libtype? = nil, maxresults: Int? = nil, sort: String? = nil, xPlexContainerSize: Int? = nil, xPlexContainerStart: Int? = nil) {
|
||||
self.filter = filter
|
||||
self.xPlexToken = xPlexToken
|
||||
self.includeCollections = includeCollections
|
||||
self.includeExternalMedia = includeExternalMedia
|
||||
self.libtype = libtype
|
||||
self.maxresults = maxresults
|
||||
self.sort = sort
|
||||
self.xPlexContainerSize = xPlexContainerSize
|
||||
self.xPlexContainerStart = xPlexContainerStart
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user