/* Options: Date: 2024-07-03 13:05:37 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: HomepageSettingsQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/homepage/settings", "GET") public class HomepageSettingsQuery : IReturn, ICompany, ICompanyRequest, Codable { public typealias Return = HomepageSettingsQueryResponse /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", ParameterType="path") public var companyId:String? /** * If you want to include the homepage template options to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the homepage template options to select from", ParameterType="query") public var includeHomePageTemplateOptions:Bool /** * If you want to include the homepage hero section style options to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the homepage hero section style options to select from", ParameterType="query") public var includeHomePageHeroSectionStyleOptions:Bool /** * The homeage sitepath. */ // @ApiMember(Description="The homeage sitepath.") public var sitePath:String required public init(){} } public class HomepageSettingsQueryResponse : Codable { /** * The company id */ // @ApiMember(Description="The company id") public var companyId:String /** * The text for homepage heading */ // @ApiMember(Description="The text for homepage heading") public var homepageHeading:String /** * The text for homepage startpage heading */ // @ApiMember(Description="The text for homepage startpage heading") public var welcomePageHeading:String /** * The text for homepage startpage body */ // @ApiMember(Description="The text for homepage startpage body") public var welcomePageBody:String /** * The text for homepage about us page heading */ // @ApiMember(Description="The text for homepage about us page heading") public var aboutUsPageHeading:String /** * The text for homepage about us page body */ // @ApiMember(Description="The text for homepage about us page body") public var aboutUsPageBody:String /** * The startpage image url */ // @ApiMember(Description="The startpage image url") public var imageUrl:Uri /** * The template for the homepage */ // @ApiMember(Description="The template for the homepage") public var homePageTemplateId:Int /** * The hero section style for the homepage */ // @ApiMember(Description="The hero section style for the homepage") public var heroSectionStyleId:Int /** * Show rating on the page */ // @ApiMember(Description="Show rating on the page") public var showRating:Bool /** * Enable the BokaMera Homepage */ // @ApiMember(Description="Enable the BokaMera Homepage") public var enableHomepage:Bool /** * Will show when the homepage settings was created, note it will only be shown if your logged in as admin for the company. */ // @ApiMember(DataType="datetime", Description="Will show when the homepage settings was created, note it will only be shown if your logged in as admin for the company.") public var updated:Date? /** * Will show when the homepage settings was updated, note it will only be shown if your logged in as admin for the company. */ // @ApiMember(DataType="datetime", Description="Will show when the homepage settings was updated, note it will only be shown if your logged in as admin for the company.") public var created:Date? /** * The homepage templates options to select from */ // @ApiMember(DataType="boolean", Description="The homepage templates options to select from", ParameterType="query") public var homePageTemplateOptions:[HomepageTemplateResponse] = [] /** * The homepage hero section style options to select from */ // @ApiMember(DataType="boolean", Description="The homepage hero section style options to select from", ParameterType="query") public var homepageHeroSectionStyleOptions:[HomepageHeroSectionStyleResponse] = [] required public init(){} } public protocol ICompany { var companyId:String? { get set } } public protocol ICompanyRequest { var companyId:String? { get set } var sitePath:String { get set } } public class HomepageTemplateResponse : Codable { /** * The template id */ // @ApiMember(Description="The template id") public var id:Int /** * The template name */ // @ApiMember(Description="The template name") public var name:String /** * The template description */ // @ApiMember(Description="The template description") public var Description:String /** * The template image url */ // @ApiMember(Description="The template image url") public var imageUrl:Uri required public init(){} } public class HomepageHeroSectionStyleResponse : Codable { /** * The hero section style id */ // @ApiMember(Description="The hero section style id") public var id:Int /** * The hero section style name */ // @ApiMember(Description="The hero section style name") public var name:String /** * The hero section style description */ // @ApiMember(Description="The hero section style description") public var Description:String required public init(){} }