mirror of
https://github.com/xtool-org/xtool.git
synced 2026-09-28 13:01:44 +02:00
43 lines
1.1 KiB
Swift
43 lines
1.1 KiB
Swift
//
|
|
// DeveloperServicesAssignAppGroupRequest.swift
|
|
// Supercharge
|
|
//
|
|
// Created by Kabir Oberai on 24/07/19.
|
|
// Copyright © 2019 Kabir Oberai. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public final class DeveloperServicesAssignAppGroupRequest: DeveloperServicesPlatformRequest {
|
|
|
|
public struct Response: Decodable, Sendable {}
|
|
public typealias Value = Response
|
|
|
|
public let platform: DeveloperServicesPlatform
|
|
public let teamID: DeveloperServicesTeam.ID
|
|
public let appIDID: String
|
|
public let groupID: DeveloperServicesAppGroup.ID
|
|
|
|
var subAction: String { return "assignApplicationGroupToAppId" }
|
|
var subParameters: [String: Any] {
|
|
return [
|
|
"teamId": teamID.rawValue,
|
|
"appIdId": appIDID,
|
|
"applicationGroups": groupID.rawValue
|
|
]
|
|
}
|
|
|
|
public init(
|
|
platform: DeveloperServicesPlatform,
|
|
teamID: DeveloperServicesTeam.ID,
|
|
appIDID: String,
|
|
groupID: DeveloperServicesAppGroup.ID
|
|
) {
|
|
self.platform = platform
|
|
self.teamID = teamID
|
|
self.appIDID = appIDID
|
|
self.groupID = groupID
|
|
}
|
|
|
|
}
|