/* Options: Date: 2024-11-21 11:52:07 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: ApiVersionCompabilityQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/version/compability", "GET") public class ApiVersionCompabilityQuery : IReturn, Codable { public typealias Return = ApiVersionCompabilityQueryResponse /** * The identifier for your application. */ // @ApiMember(Description="The identifier for your application.", IsRequired=true, ParameterType="query") public var identifier:VersionIdentifier /** * The version you are running and you want to check */ // @ApiMember(Description="The version you are running and you want to check", IsRequired=true, ParameterType="query") public var version:String required public init(){} } public class ApiVersionCompabilityQueryResponse : Codable { /** * The latest version number */ public var currentVersion:String /** * Your version number */ public var yourVersion:String /** * Any compatible error message */ public var message:String /** * If your version is compatible with the current version */ public var compatible:Bool /** * If the changes are blocking for use and you need to upgrade to later version */ public var blockingChanges:Bool public var responseStatus:ResponseStatus required public init(){} } public enum VersionIdentifier : Int, Codable { case BokaMeraiOS = 1 case BokaMeraAdminiOS = 2 case BokaMeraAndroid = 3 case BokaMeraAdminAndroid = 4 }