/* Options: Date: 2024-12-01 04:11:45 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: AuthorizeToken.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/authorizetoken/{Service}/{TokenString}", "GET,POST") public class AuthorizeToken : IReturn, IAuthorizeToken, Codable { public typealias Return = AuthorizeTokenResponse // @ApiMember(IsRequired=true, ParameterType="path") public var tokenString:String // @ApiMember(IsRequired=true, ParameterType="path") public var service:String required public init(){} } public class AuthorizeTokenResponse : AuthorizeBaseResponse { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public protocol IAuthorizeToken { var tokenString:String { get set } var service:String { get set } } public class Setting : Codable { public var name:String public var stringValue:String public var booleanValue:Bool public var dataType:String required public init(){} } public class AuthorizeBaseResponse : Codable { public var isAuthorized:Bool public var settings:[Setting] = [] public var suggestedStatusCode:Int public var suggestedResponseMessage:String public var reason:String public var customerId:String? required public init(){} }