/* Options: Date: 2024-12-23 11:50:18 SwiftVersion: 5.0 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetNewsRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/news", "GET") public class GetNewsRequest : IReturn, IGet, Codable { public typealias Return = GetNewsResponse required public init(){} } public class GetNewsResponse : Codable { public var news:[NewsDto] = [] required public init(){} } public class NewsDto : Codable { public var subject:String public var body:String public var author:String public var createdAt:Date required public init(){} }