/* Options: Date: 2024-11-21 12:01:38 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: LogoutUser.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/users/logout", "POST") public class LogoutUser : Codable { /** * The user realm for identity server. BookMore = 1, BookMoreAdmin = 2 */ // @ApiMember(Description="The user realm for identity server. BookMore = 1, BookMoreAdmin = 2 ", IsRequired=true) public var realm:KeyCloakRealm /** * The user email to log out. */ // @ApiMember(Description="The user email to log out.") public var email:String required public init(){} } public enum KeyCloakRealm : Int, Codable { case BookMore = 1 case BookMoreAdmin = 2 case SuperAdmin = 3 }