/* Options: Date: 2024-05-03 06:36:45 SwiftVersion: 5.0 Version: 8.13 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetConfig.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/config") public class GetConfig : IReturn, IGet, Codable { public typealias Return = GetConfigResponse required public init(){} } public class GetConfigResponse : Codable { public var allTiers:[Option] = [] public var allPostTypes:[Option] = [] public var allFlagTypes:[Option] = [] required public init(){} } public enum TechnologyTier : String, Codable { case ProgrammingLanguage case Client case Http case Server case Data case SoftwareInfrastructure case OperatingSystem case HardwareInfrastructure case ThirdPartyServices } // @DataContract public class Option : Codable { // @DataMember(Name="name") public var name:String // @DataMember(Name="title") public var title:String // @DataMember(Name="value") public var value:TechnologyTier? required public init(){} }