xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Sources / XKit / DeveloperServices / App Groups / DeveloperServicesAppGroup.swift
DeveloperServicesAppGroup.swift31 lines · 829 BRaw
| 1 | // |
| 2 | // DeveloperServiceAppGroup.swift |
| 3 | // Supercharge |
| 4 | // |
| 5 | // Created by Kabir Oberai on 29/07/19. |
| 6 | // Copyright © 2019 Kabir Oberai. All rights reserved. |
| 7 | // |
| 8 | |
| 9 | import Foundation |
| 10 | |
| 11 | public struct DeveloperServicesAppGroup: Decodable, Sendable { |
| 12 | public struct ID: RawRepresentable, Decodable, Sendable { |
| 13 | public let rawValue: String |
| 14 | public init(rawValue: String) { self.rawValue = rawValue } |
| 15 | } |
| 16 | public let id: ID |
| 17 | |
| 18 | public let name: String |
| 19 | |
| 20 | public struct GroupID: RawRepresentable, Hashable, Codable, Sendable { |
| 21 | public let rawValue: String |
| 22 | public init(rawValue: String) { self.rawValue = rawValue } |
| 23 | } |
| 24 | public let groupID: GroupID |
| 25 | |
| 26 | private enum CodingKeys: String, CodingKey { |
| 27 | case id = "applicationGroup" |
| 28 | case name |
| 29 | case groupID = "identifier" |
| 30 | } |
| 31 | } |