mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 20:57:46 +00:00
30 lines
905 B
Swift
30 lines
905 B
Swift
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetFileHashRequest: APIValue {
|
|
/// This is the path to the local file, must be prefixed by `file://`
|
|
public let url: String
|
|
/// Item type
|
|
@DecimalSerialized
|
|
public private(set) var type: Double?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter url: This is the path to the local file, must be prefixed by `file://`
|
|
/// - Parameter type: Item type
|
|
///
|
|
public init(url: String, type: Double? = nil) {
|
|
self.url = url
|
|
self._type = DecimalSerialized<Double?>(wrappedValue: type)
|
|
}
|
|
}
|
|
}
|
|
extension Operations.GetFileHashRequest {
|
|
var typeWrapper: DecimalSerialized<Double?> {
|
|
return _type
|
|
}
|
|
}
|