/* Options: Date: 2025-05-10 02:04:26 SwiftVersion: 5.0 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: PasswordRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //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(){} }