/* Options: Date: 2024-11-21 12:18:40 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateHomepageSettings.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class HomepageTemplateResponse implements IConvertible { /** * The template id */ // @ApiMember(Description="The template id") int? Id; /** * The template name */ // @ApiMember(Description="The template name") String? Name; /** * The template description */ // @ApiMember(Description="The template description") String? Description; /** * The template image url */ // @ApiMember(Description="The template image url") Uri? ImageUrl; HomepageTemplateResponse({this.Id,this.Name,this.Description,this.ImageUrl}); HomepageTemplateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!) }; getTypeName() => "HomepageTemplateResponse"; TypeContext? context = _ctx; } class HomepageHeroSectionStyleResponse implements IConvertible { /** * The hero section style id */ // @ApiMember(Description="The hero section style id") int? Id; /** * The hero section style name */ // @ApiMember(Description="The hero section style name") String? Name; /** * The hero section style description */ // @ApiMember(Description="The hero section style description") String? Description; HomepageHeroSectionStyleResponse({this.Id,this.Name,this.Description}); HomepageHeroSectionStyleResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "HomepageHeroSectionStyleResponse"; TypeContext? context = _ctx; } class HomepageSettingsQueryResponse implements IConvertible { /** * The company id */ // @ApiMember(Description="The company id") String? CompanyId; /** * The text for homepage heading */ // @ApiMember(Description="The text for homepage heading") String? HomepageHeading; /** * The text for homepage startpage heading */ // @ApiMember(Description="The text for homepage startpage heading") String? WelcomePageHeading; /** * The text for homepage startpage body */ // @ApiMember(Description="The text for homepage startpage body") String? WelcomePageBody; /** * The text for homepage about us page heading */ // @ApiMember(Description="The text for homepage about us page heading") String? AboutUsPageHeading; /** * The text for homepage about us page body */ // @ApiMember(Description="The text for homepage about us page body") String? AboutUsPageBody; /** * The startpage image url */ // @ApiMember(Description="The startpage image url") Uri? ImageUrl; /** * The template for the homepage */ // @ApiMember(Description="The template for the homepage") int? HomePageTemplateId; /** * The hero section style for the homepage */ // @ApiMember(Description="The hero section style for the homepage") int? HeroSectionStyleId; /** * Show rating on the page */ // @ApiMember(Description="Show rating on the page") bool? ShowRating; /** * Enable the BokaMera Homepage */ // @ApiMember(Description="Enable the BokaMera Homepage") bool? EnableHomepage; /** * 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.") DateTime? Updated; /** * 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.") DateTime? Created; /** * The homepage templates options to select from */ // @ApiMember(DataType="boolean", Description="The homepage templates options to select from", ParameterType="query") List? HomePageTemplateOptions; /** * The homepage hero section style options to select from */ // @ApiMember(DataType="boolean", Description="The homepage hero section style options to select from", ParameterType="query") List? HomepageHeroSectionStyleOptions; HomepageSettingsQueryResponse({this.CompanyId,this.HomepageHeading,this.WelcomePageHeading,this.WelcomePageBody,this.AboutUsPageHeading,this.AboutUsPageBody,this.ImageUrl,this.HomePageTemplateId,this.HeroSectionStyleId,this.ShowRating,this.EnableHomepage,this.Updated,this.Created,this.HomePageTemplateOptions,this.HomepageHeroSectionStyleOptions}); HomepageSettingsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; HomepageHeading = json['HomepageHeading']; WelcomePageHeading = json['WelcomePageHeading']; WelcomePageBody = json['WelcomePageBody']; AboutUsPageHeading = json['AboutUsPageHeading']; AboutUsPageBody = json['AboutUsPageBody']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); HomePageTemplateId = json['HomePageTemplateId']; HeroSectionStyleId = json['HeroSectionStyleId']; ShowRating = json['ShowRating']; EnableHomepage = json['EnableHomepage']; Updated = JsonConverters.fromJson(json['Updated'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); HomePageTemplateOptions = JsonConverters.fromJson(json['HomePageTemplateOptions'],'List',context!); HomepageHeroSectionStyleOptions = JsonConverters.fromJson(json['HomepageHeroSectionStyleOptions'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'HomepageHeading': HomepageHeading, 'WelcomePageHeading': WelcomePageHeading, 'WelcomePageBody': WelcomePageBody, 'AboutUsPageHeading': AboutUsPageHeading, 'AboutUsPageBody': AboutUsPageBody, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!), 'HomePageTemplateId': HomePageTemplateId, 'HeroSectionStyleId': HeroSectionStyleId, 'ShowRating': ShowRating, 'EnableHomepage': EnableHomepage, 'Updated': JsonConverters.toJson(Updated,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'HomePageTemplateOptions': JsonConverters.toJson(HomePageTemplateOptions,'List',context!), 'HomepageHeroSectionStyleOptions': JsonConverters.toJson(HomepageHeroSectionStyleOptions,'List',context!) }; getTypeName() => "HomepageSettingsQueryResponse"; TypeContext? context = _ctx; } // @Route("/homepage/settings", "PUT") // @ValidateRequest(Validator="IsAuthenticated") class UpdateHomepageSettings implements IReturn, ICompany, IConvertible, IPut { /** * The company id */ // @ApiMember(Description="The company id") String? CompanyId; /** * The text for homepage heading */ // @ApiMember(Description="The text for homepage heading") String? HomepageHeading; /** * The text for homepage startpage heading */ // @ApiMember(Description="The text for homepage startpage heading") String? WelcomePageHeading; /** * The text for homepage startpage body */ // @ApiMember(Description="The text for homepage startpage body") String? WelcomePageBody; /** * The text for homepage about us page heading */ // @ApiMember(Description="The text for homepage about us page heading") String? AboutUsPageHeading; /** * The text for homepage about us page body */ // @ApiMember(Description="The text for homepage about us page body") String? AboutUsPageBody; /** * The start page image url */ // @ApiMember(Description="The start page image url") Uri? ImageUrl; /** * The template for the homepage */ // @ApiMember(Description="The template for the homepage") int? HomePageTemplateId; /** * Show rating on the page */ // @ApiMember(Description="Show rating on the page") bool? ShowRating; /** * Enable the BokaMera Homepage */ // @ApiMember(Description="Enable the BokaMera Homepage") bool? EnableHomepage; /** * The hero section style for the homepage */ // @ApiMember(Description="The hero section style for the homepage") int? HeroSectionStyleId; UpdateHomepageSettings({this.CompanyId,this.HomepageHeading,this.WelcomePageHeading,this.WelcomePageBody,this.AboutUsPageHeading,this.AboutUsPageBody,this.ImageUrl,this.HomePageTemplateId,this.ShowRating,this.EnableHomepage,this.HeroSectionStyleId}); UpdateHomepageSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; HomepageHeading = json['HomepageHeading']; WelcomePageHeading = json['WelcomePageHeading']; WelcomePageBody = json['WelcomePageBody']; AboutUsPageHeading = json['AboutUsPageHeading']; AboutUsPageBody = json['AboutUsPageBody']; ImageUrl = JsonConverters.fromJson(json['ImageUrl'],'Uri',context!); HomePageTemplateId = json['HomePageTemplateId']; ShowRating = json['ShowRating']; EnableHomepage = json['EnableHomepage']; HeroSectionStyleId = json['HeroSectionStyleId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'HomepageHeading': HomepageHeading, 'WelcomePageHeading': WelcomePageHeading, 'WelcomePageBody': WelcomePageBody, 'AboutUsPageHeading': AboutUsPageHeading, 'AboutUsPageBody': AboutUsPageBody, 'ImageUrl': JsonConverters.toJson(ImageUrl,'Uri',context!), 'HomePageTemplateId': HomePageTemplateId, 'ShowRating': ShowRating, 'EnableHomepage': EnableHomepage, 'HeroSectionStyleId': HeroSectionStyleId }; createResponse() => HomepageSettingsQueryResponse(); getResponseTypeName() => "HomepageSettingsQueryResponse"; getTypeName() => "UpdateHomepageSettings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'HomepageTemplateResponse': TypeInfo(TypeOf.Class, create:() => HomepageTemplateResponse()), 'Uri': TypeInfo(TypeOf.Class, create:() => Uri()), 'HomepageHeroSectionStyleResponse': TypeInfo(TypeOf.Class, create:() => HomepageHeroSectionStyleResponse()), 'HomepageSettingsQueryResponse': TypeInfo(TypeOf.Class, create:() => HomepageSettingsQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UpdateHomepageSettings': TypeInfo(TypeOf.Class, create:() => UpdateHomepageSettings()), });