/* Options: Date: 2026-05-25 03:11:52 SwiftVersion: 6.0 Version: 10.06 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: PasswordRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Service for changing passwords */ // @Route("/Password", "POST, GET") // @Route("/Password/{action}", "POST, GET") // @DataContract public class PasswordRequest : IReturn, Codable { public typealias Return = PasswordResponse // @DataMember public var action:String? // @DataMember public var username:String? // @DataMember public var passwordToken:String? // @DataMember public var password:String? required public init(){} } // @DataContract public class PasswordResponse : BaseResponse { // @DataMember public var response:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case response } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) response = try container.decodeIfPresent(String.self, forKey: .response) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if response != nil { try container.encode(response, forKey: .response) } } } // @DataContract public class BaseResponse : Codable { /** * */ // @DataMember // @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") public var status:BaseResponseResult? required public init(){} }