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

42 lines
1.1 KiB
Swift

//
// DeveloperServicesGetProfileRequest.swift
// Supercharge
//
// Created by Kabir Oberai on 24/07/19.
// Copyright © 2019 Kabir Oberai. All rights reserved.
//
import Foundation
public struct DeveloperServicesGetProfileRequest: DeveloperServicesPlatformRequest {
public struct Response: Decodable, Sendable {
public let provisioningProfile: DeveloperServicesProfile
}
public typealias Value = DeveloperServicesProfile
public let platform: DeveloperServicesPlatform
public let teamID: DeveloperServicesTeam.ID
public let appIDID: DeveloperServicesAppID.ID
var subAction: String { return "downloadTeamProvisioningProfile" }
var subParameters: [String: Any] {
return ["teamId": teamID.rawValue, "appIdId": appIDID.rawValue]
}
public func parse(_ response: Response) -> DeveloperServicesProfile {
response.provisioningProfile
}
public init(
platform: DeveloperServicesPlatform,
teamID: DeveloperServicesTeam.ID,
appIDID: DeveloperServicesAppID.ID
) {
self.platform = platform
self.teamID = teamID
self.appIDID = appIDID
}
}