mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
67 lines
4.4 KiB
Swift
67 lines
4.4 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetUsersRequest: APIValue {
|
|
/// An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
|
public let clientID: String
|
|
/// An authentication token, obtained from plex.tv
|
|
public let xPlexToken: String
|
|
/// The features of the client application. This is used to track the client application and its usage. (external-media,indirect-media,hub-style-list)
|
|
public let clientFeatures: String?
|
|
/// The name of the client application. (Plex Web, Plex Media Server, etc.)
|
|
public let clientName: String?
|
|
/// The version of the client application.
|
|
public let clientVersion: String?
|
|
/// The name of the device the client application is running on. This is used to track the client application and its usage. (Chrome, Safari, etc.)
|
|
public let deviceName: String?
|
|
/// A relatively friendly name for the client device
|
|
public let deviceNickname: String?
|
|
/// The resolution of the device the client application is running on. This is used to track the client application and its usage. (1487x1165,2560x1440)
|
|
public let deviceScreenResolution: String?
|
|
/// A potentially less friendly identifier for the device model
|
|
public let model: String?
|
|
/// The platform of the client application.
|
|
public let platform: String?
|
|
/// The version of the platform
|
|
public let platformVersion: String?
|
|
/// The language of the client application.
|
|
public let xPlexLanguage: String?
|
|
/// The session ID of the client application. This is used to track the client application and its usage. (97e136ef-4ddd-4ff3-89a7-a5820c96c2ca)
|
|
public let xPlexSessionId: String?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter clientID: An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
|
/// - Parameter xPlexToken: An authentication token, obtained from plex.tv
|
|
/// - Parameter clientFeatures: The features of the client application. This is used to track the client application and its usage. (external-media,indirect-media,hub-style-list)
|
|
/// - Parameter clientName: The name of the client application. (Plex Web, Plex Media Server, etc.)
|
|
/// - Parameter clientVersion: The version of the client application.
|
|
/// - Parameter deviceName: The name of the device the client application is running on. This is used to track the client application and its usage. (Chrome, Safari, etc.)
|
|
/// - Parameter deviceNickname: A relatively friendly name for the client device
|
|
/// - Parameter deviceScreenResolution: The resolution of the device the client application is running on. This is used to track the client application and its usage. (1487x1165,2560x1440)
|
|
/// - Parameter model: A potentially less friendly identifier for the device model
|
|
/// - Parameter platform: The platform of the client application.
|
|
/// - Parameter platformVersion: The version of the platform
|
|
/// - Parameter xPlexLanguage: The language of the client application.
|
|
/// - Parameter xPlexSessionId: The session ID of the client application. This is used to track the client application and its usage. (97e136ef-4ddd-4ff3-89a7-a5820c96c2ca)
|
|
///
|
|
public init(clientID: String, xPlexToken: String, clientFeatures: String? = nil, clientName: String? = nil, clientVersion: String? = nil, deviceName: String? = nil, deviceNickname: String? = nil, deviceScreenResolution: String? = nil, model: String? = nil, platform: String? = nil, platformVersion: String? = nil, xPlexLanguage: String? = nil, xPlexSessionId: String? = nil) {
|
|
self.clientID = clientID
|
|
self.xPlexToken = xPlexToken
|
|
self.clientFeatures = clientFeatures
|
|
self.clientName = clientName
|
|
self.clientVersion = clientVersion
|
|
self.deviceName = deviceName
|
|
self.deviceNickname = deviceNickname
|
|
self.deviceScreenResolution = deviceScreenResolution
|
|
self.model = model
|
|
self.platform = platform
|
|
self.platformVersion = platformVersion
|
|
self.xPlexLanguage = xPlexLanguage
|
|
self.xPlexSessionId = xPlexSessionId
|
|
}
|
|
}}
|