Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
appstore-distribution ▾

xtool.git / Sources / XKit / DeveloperServices / App Groups / DeveloperServicesAssignAppGroupRequest.swift

DeveloperServicesAssignAppGroupRequest.swift42 lines · 1.1 KiBRaw
1//
2// DeveloperServicesAssignAppGroupRequest.swift
3// Supercharge
4//
5// Created by Kabir Oberai on 24/07/19.
6// Copyright © 2019 Kabir Oberai. All rights reserved.
7//
8
9import Foundation
10
11public final class DeveloperServicesAssignAppGroupRequest: DeveloperServicesPlatformRequest {
12
13 public struct Response: Decodable, Sendable {}
14 public typealias Value = Response
15
16 public let platform: DeveloperServicesPlatform
17 public let teamID: DeveloperServicesTeam.ID
18 public let appIDID: String
19 public let groupID: DeveloperServicesAppGroup.ID
20
21 var subAction: String { return "assignApplicationGroupToAppId" }
22 var subParameters: [String: Any] {
23 return [
24 "teamId": teamID.rawValue,
25 "appIdId": appIDID,
26 "applicationGroups": groupID.rawValue
27 ]
28 }
29
30 public init(
31 platform: DeveloperServicesPlatform,
32 teamID: DeveloperServicesTeam.ID,
33 appIDID: String,
34 groupID: DeveloperServicesAppGroup.ID
35 ) {
36 self.platform = platform
37 self.teamID = teamID
38 self.appIDID = appIDID
39 self.groupID = groupID
40 }
41
42}