Files
xtool-mirror/Sources/Supersign/DeveloperServices/Devices/DeveloperServicesDevice.swift
2024-12-01 22:38:51 -05:00

33 lines
852 B
Swift

//
// DeveloperServicesDevice.swift
// Supercharge
//
// Created by Kabir Oberai on 07/10/19.
// Copyright © 2019 Kabir Oberai. All rights reserved.
//
import Foundation
public struct DeveloperServicesDevice: Decodable, Sendable {
public struct ID: RawRepresentable, Decodable, Sendable {
public let rawValue: String
public init(rawValue: String) { self.rawValue = rawValue }
}
public let id: ID
public let name: String
public let udid: String
public let platform: DeveloperServicesPlatform
public let type: String // TODO: Create enum
public let model: String?
private enum CodingKeys: String, CodingKey {
case id = "deviceId"
case name
case udid = "deviceNumber"
case platform = "devicePlatform"
case type = "deviceClass"
case model
}
}