Files
xtool-mirror/Sources/XKit/DeveloperServices/Teams/DeveloperServicesListTeamsRequest.swift
2025-05-06 11:01:25 +05:30

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() {}
}