mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
39 lines
1.8 KiB
Swift
39 lines
1.8 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetTokenByPinIdRequest: APIValue {
|
|
/// An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
|
|
public let clientID: String
|
|
/// The PinID to retrieve an access token for
|
|
public let pinID: Int
|
|
/// 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?
|
|
/// A relatively friendly name for the client device
|
|
public let deviceNickname: String?
|
|
/// The platform of the client application.
|
|
public let platform: 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 pinID: The PinID to retrieve an access token for
|
|
/// - Parameter clientName: The name of the client application. (Plex Web, Plex Media Server, etc.)
|
|
/// - Parameter clientVersion: The version of the client application.
|
|
/// - Parameter deviceNickname: A relatively friendly name for the client device
|
|
/// - Parameter platform: The platform of the client application.
|
|
///
|
|
public init(clientID: String, pinID: Int, clientName: String? = nil, clientVersion: String? = nil, deviceNickname: String? = nil, platform: String? = nil) {
|
|
self.clientID = clientID
|
|
self.pinID = pinID
|
|
self.clientName = clientName
|
|
self.clientVersion = clientVersion
|
|
self.deviceNickname = deviceNickname
|
|
self.platform = platform
|
|
}
|
|
}}
|