/* Options: Date: 2024-12-01 03:58:17 SwiftVersion: 5.0 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://nkapi-sgepz3-auth.azurewebsites.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetAuthorizationPost.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/authorization", "POST") public class GetAuthorizationPost : IReturn, IGetAuthorization, Codable { public typealias Return = GetAuthorizationResponse // @ApiMember() public var serviceName:String // @ApiMember() public var tokenString:String // @ApiMember() public var userTokenString:String // @ApiMember() public var profile:String required public init(){} } public class GetAuthorizationResponse : Codable { public var isAuthorized:Bool public var parameters:[String:String] = [:] public var userObjectId:String? public var userTenant:String required public init(){} } public protocol IGetAuthorization { var serviceName:String { get set } var tokenString:String { get set } var userTokenString:String { get set } var profile:String { get set } }