/* Options: Date: 2024-11-21 19:52:57 SwiftVersion: 5.0 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://northwind.netcore.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: CachedGetAllCustomers.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/cached/customers") public class CachedGetAllCustomers : IReturn, IGet, Codable { public typealias Return = CustomersResponse required public init(){} } // @DataContract public class CustomersResponse : Codable { // @DataMember public var results:[Customer] = [] // @DataMember public var responseStatus:ResponseStatus required public init(){} } // @DataContract public class Customer : Codable { // @DataMember public var id:String // @DataMember public var companyName:String // @DataMember public var contactName:String // @DataMember public var contactTitle:String // @DataMember public var address:String // @DataMember public var city:String // @DataMember public var region:String // @DataMember public var postalCode:String // @DataMember public var country:String // @DataMember public var phone:String // @DataMember public var fax:String required public init(){} }