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

37 lines
1.2 KiB
Swift

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetTopWatchedContentRequest: APIValue {
/// The type of media to retrieve.
/// 1 = movie
/// 2 = show
/// 3 = season
/// 4 = episode
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
///
public let type: Operations.GetTopWatchedContentQueryParamType
/// Adds the Guids object to the response
///
public let includeGuids: Int?
/// Creates an object with the specified parameters
///
/// - Parameter type: The type of media to retrieve.
/// 1 = movie
/// 2 = show
/// 3 = season
/// 4 = episode
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
///
/// - Parameter includeGuids: Adds the Guids object to the response
///
///
public init(type: Operations.GetTopWatchedContentQueryParamType, includeGuids: Int? = nil) {
self.type = type
self.includeGuids = includeGuids
}
}}