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

36 lines
993 B
Swift

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