/* Options: Date: 2024-12-29 02:12:18 SwiftVersion: 5.0 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: FinancialAidApplicationFileRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/Finance/FinancialAid/Application/{application_uuid}/{file_uuid}", "POST") public class FinancialAidApplicationFileRequest : IReturn, Codable { public typealias Return = FileResponse public var application_uuid:String public var file_uuid:String required public init(){} } public class FileResponse : FileSimpleResponse { public var type:String public var content:[UInt8] = [] required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case type case content } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) type = try container.decodeIfPresent(String.self, forKey: .type) content = try container.decodeIfPresent([UInt8].self, forKey: .content) ?? [] } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if type != nil { try container.encode(type, forKey: .type) } if content.count > 0 { try container.encode(content, forKey: .content) } } } public class FileSimpleResponse : Codable { public var responseStatus:ResponseStatus public var uuid:String public var name:String public var `extension`:String public var size:Int required public init(){} }