Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

661 B
Raw Blame
//
//  DeveloperServicesListTeamsRequest.swift
//  Supercharge
//
//  Created by Kabir Oberai on 24/07/19.
//  Copyright © 2019 Kabir Oberai. All rights reserved.
//

import Foundation

public struct DeveloperServicesListTeamsRequest: DeveloperServicesRequest {

    public struct Response: Decodable, Sendable {
        public let teams: [DeveloperServicesTeam]
    }
    public typealias Value = [DeveloperServicesTeam]

    public var action: String { return "listTeams" }
    public var parameters: [String: Any] { return [:] }

    public func parse(_ response: Response) -> [DeveloperServicesTeam] {
        response.teams
    }

    public init() {}

}