xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Sources / XKit / DeveloperServices / Teams / DeveloperServicesListTeamsRequest.swift
DeveloperServicesListTeamsRequest.swift27 lines · 661 BRaw
| 1 | // |
| 2 | // DeveloperServicesListTeamsRequest.swift |
| 3 | // Supercharge |
| 4 | // |
| 5 | // Created by Kabir Oberai on 24/07/19. |
| 6 | // Copyright © 2019 Kabir Oberai. All rights reserved. |
| 7 | // |
| 8 | |
| 9 | import Foundation |
| 10 | |
| 11 | public struct DeveloperServicesListTeamsRequest: DeveloperServicesRequest { |
| 12 | |
| 13 | public struct Response: Decodable, Sendable { |
| 14 | public let teams: [DeveloperServicesTeam] |
| 15 | } |
| 16 | public typealias Value = [DeveloperServicesTeam] |
| 17 | |
| 18 | public var action: String { return "listTeams" } |
| 19 | public var parameters: [String: Any] { return [:] } |
| 20 | |
| 21 | public func parse(_ response: Response) -> [DeveloperServicesTeam] { |
| 22 | response.teams |
| 23 | } |
| 24 | |
| 25 | public init() {} |
| 26 | |
| 27 | } |