FetchGlobalOrientationRequest
public struct FetchGlobalOrientationRequest : HTTPRequest
Fetch a device’s global orientation.
The global orientation can be a value between 0 and 360.
-
Declaration
Swift
public typealias ResponseObject = RangedValue<Double>
-
Declaration
Swift
public typealias ErrorObject = APIError
-
Declaration
Swift
public let baseURL: URL
-
Declaration
Swift
public var method: HTTPMethod { get }
-
Declaration
Swift
public var path: String { get }
-
Declaration
Swift
public var isAuthenticated: Bool { get }
-
Declaration
Swift
public var body: Data?
-
Initialize a new instance.
Declaration
Swift
public init( url: URL, token: String )
Parameters
url
The device’s URL.
token
The device’s token.