mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
28 lines
661 B
Swift
28 lines
661 B
Swift
//
|
|
// 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() {}
|
|
|
|
}
|