/* Options: Date: 2024-06-16 17:57:05 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: UpdateHomepageImage.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/homepage/images/{Id}", "PUT") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") public class UpdateHomepageImage : IReturn, ICompany, Codable { public typealias Return = HomepageImageQueryResponse /** * Enter the company id, if blank company id and you are an admin, your company id will be used. */ // @ApiMember(Description="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired=true) public var companyId:String? /** * The homepage image id. */ // @ApiMember(Description="The homepage image id.", IsRequired=true, ParameterType="path") public var id:Int /** * The image title. */ // @ApiMember(Description="The image title.") public var title:String /** * The image description. */ // @ApiMember(Description="The image description.") public var Description:String /** * The image url. */ // @ApiMember(Description="The image url.") public var imageUrl:Uri required public init(){} } public class HomepageImageQueryResponse : Codable { /** * The company id. */ // @ApiMember(Description="The company id.") public var companyId:String /** * The homepage image id. */ // @ApiMember(Description="The homepage image id.") public var id:Int /** * The image title. */ // @ApiMember(Description="The image title.") public var title:String /** * The image description. */ // @ApiMember(Description="The image description.") public var Description:String /** * The image url. */ // @ApiMember(Description="The image url.") public var imageUrl:Uri required public init(){} } public protocol ICompany { var companyId:String? { get set } }