xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Sources / XKit / DeveloperServices / Teams / DeveloperServicesViewDeveloperRequest.swift
DeveloperServicesViewDeveloperRequest.swift39 lines · 919 BRaw
| 1 | // |
| 2 | // DeveloperServicesViewDeveloperRequest.swift |
| 3 | // Supercharge |
| 4 | // |
| 5 | // Created by Kabir Oberai on 24/07/19. |
| 6 | // Copyright © 2019 Kabir Oberai. All rights reserved. |
| 7 | // |
| 8 | |
| 9 | import Foundation |
| 10 | |
| 11 | public struct DeveloperServicesViewDeveloperRequest: DeveloperServicesRequest { |
| 12 | |
| 13 | public struct Developer: Decodable, Sendable { |
| 14 | public let email: String |
| 15 | |
| 16 | public let firstName: String |
| 17 | public let lastName: String |
| 18 | |
| 19 | public let dsFirstName: String |
| 20 | public let dsLastName: String |
| 21 | |
| 22 | public let developerStatus: String |
| 23 | } |
| 24 | |
| 25 | public struct Response: Decodable, Sendable { |
| 26 | let developer: Developer |
| 27 | } |
| 28 | public typealias Value = Developer |
| 29 | |
| 30 | public var action: String { return "viewDeveloper" } |
| 31 | public var parameters: [String: Any] { return [:] } |
| 32 | |
| 33 | public func parse(_ response: Response) -> Developer { |
| 34 | response.developer |
| 35 | } |
| 36 | |
| 37 | public init() {} |
| 38 | |
| 39 | } |