/* Options: Date: 2024-07-03 13:13:56 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: HomepageSchedulerSettingsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } abstract class ICompanyRequest { String? CompanyId; String? SitePath; } class HomepageSchedulerServiceResponse implements IConvertible { /** * The service id. */ // @ApiMember(Description="The service id.") int? Id; /** * The service name. */ // @ApiMember(Description="The service name.") String? Name; /** * The service description. */ // @ApiMember(Description="The service description.") String? Description; /** * The service image url. */ // @ApiMember(Description="The service image url.") Uri? ImageUrl; HomepageSchedulerServiceResponse({this.Id,this.Name,this.Description,this.ImageUrl}); HomepageSchedulerServiceResponse.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() => "HomepageSchedulerServiceResponse"; TypeContext? context = _ctx; } class HomepageSchedulerResourceResponse implements IConvertible { /** * The resource id. */ // @ApiMember(Description="The resource id.") int? Id; /** * The resource name. */ // @ApiMember(Description="The resource name.") String? Name; /** * The resource description. */ // @ApiMember(Description="The resource description.") String? Description; /** * The resource image url. */ // @ApiMember(Description="The resource image url.") Uri? ImageUrl; HomepageSchedulerResourceResponse({this.Id,this.Name,this.Description,this.ImageUrl}); HomepageSchedulerResourceResponse.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() => "HomepageSchedulerResourceResponse"; TypeContext? context = _ctx; } class HomepageSchedulerFieldResponse implements IConvertible { /** * The field id. */ // @ApiMember(Description="The field id.") int? Id; /** * If the field should be shown on booking. */ // @ApiMember(Description="If the field should be shown on booking.") bool? ShowOnBooking; /** * If the field should be shown on tooltip. */ // @ApiMember(Description="If the field should be shown on tooltip.") bool? ShowOnTooltip; HomepageSchedulerFieldResponse({this.Id,this.ShowOnBooking,this.ShowOnTooltip}); HomepageSchedulerFieldResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; ShowOnBooking = json['ShowOnBooking']; ShowOnTooltip = json['ShowOnTooltip']; return this; } Map toJson() => { 'Id': Id, 'ShowOnBooking': ShowOnBooking, 'ShowOnTooltip': ShowOnTooltip }; getTypeName() => "HomepageSchedulerFieldResponse"; TypeContext? context = _ctx; } class HomepageSchedulerFieldOptionsResponse implements IConvertible { /** * The field id. */ // @ApiMember(Description="The field id.") int? Id; /** * The field name. */ // @ApiMember(Description="The field name.") String? Name; /** * The field description. */ // @ApiMember(Description="The field description.") String? Description; /** * The field sort order when listing. */ // @ApiMember(Description="The field sort order when listing.") int? SortOrder; HomepageSchedulerFieldOptionsResponse({this.Id,this.Name,this.Description,this.SortOrder}); HomepageSchedulerFieldOptionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; SortOrder = json['SortOrder']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description, 'SortOrder': SortOrder }; getTypeName() => "HomepageSchedulerFieldOptionsResponse"; TypeContext? context = _ctx; } class ScheduleViewResponse implements IConvertible { int? Id; String? Name; ScheduleViewResponse({this.Id,this.Name}); ScheduleViewResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "ScheduleViewResponse"; TypeContext? context = _ctx; } class HomepageSchedulerSettingsQueryResponse implements IConvertible { /** * The company id. */ // @ApiMember(Description="The company id.") String? CompanyId; /** * If the user schedule is activated. */ // @ApiMember(Description="If the user schedule is activated.") bool? Active; /** * If the user schedule views id. */ // @ApiMember(Description="If the user schedule views id.") int? ScheduleViewId; /** * If the user schedule time slots in minutes. */ // @ApiMember(Description="If the user schedule time slots in minutes.") int? ScheduleTimeSlotMinutes; /** * If the user schedule time start time. */ // @ApiMember(Description="If the user schedule time start time.") Duration? StartTime; /** * If the user schedule time end time. */ // @ApiMember(Description="If the user schedule time end time.") Duration? EndTime; /** * If the user schedule should contain time exceptions. */ // @ApiMember(Description="If the user schedule should contain time exceptions.") bool? ShowTimeExceptions; /** * If allow booking in the scheduler. */ // @ApiMember(Description="If allow booking in the scheduler.") bool? EnableBooking; /** * The homepage schedule services that are selected */ // @ApiMember(Description="The homepage schedule services that are selected") List? Services; /** * The homepage schedule resources that are selected */ // @ApiMember(Description="The homepage schedule resources that are selected") List? Resources; /** * The homepage schedule fields that are selected */ // @ApiMember(Description="The homepage schedule fields that are selected") List? Fields; /** * The homepage schedule fields select from */ // @ApiMember(Description="The homepage schedule fields select from") List? FieldOptions; /** * The available schedule view options to choose from */ // @ApiMember(Description="The available schedule view options to choose from") List? ScheduleViewOptions; HomepageSchedulerSettingsQueryResponse({this.CompanyId,this.Active,this.ScheduleViewId,this.ScheduleTimeSlotMinutes,this.StartTime,this.EndTime,this.ShowTimeExceptions,this.EnableBooking,this.Services,this.Resources,this.Fields,this.FieldOptions,this.ScheduleViewOptions}); HomepageSchedulerSettingsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Active = json['Active']; ScheduleViewId = json['ScheduleViewId']; ScheduleTimeSlotMinutes = json['ScheduleTimeSlotMinutes']; StartTime = JsonConverters.fromJson(json['StartTime'],'Duration',context!); EndTime = JsonConverters.fromJson(json['EndTime'],'Duration',context!); ShowTimeExceptions = json['ShowTimeExceptions']; EnableBooking = json['EnableBooking']; Services = JsonConverters.fromJson(json['Services'],'List',context!); Resources = JsonConverters.fromJson(json['Resources'],'List',context!); Fields = JsonConverters.fromJson(json['Fields'],'List',context!); FieldOptions = JsonConverters.fromJson(json['FieldOptions'],'List',context!); ScheduleViewOptions = JsonConverters.fromJson(json['ScheduleViewOptions'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Active': Active, 'ScheduleViewId': ScheduleViewId, 'ScheduleTimeSlotMinutes': ScheduleTimeSlotMinutes, 'StartTime': JsonConverters.toJson(StartTime,'Duration',context!), 'EndTime': JsonConverters.toJson(EndTime,'Duration',context!), 'ShowTimeExceptions': ShowTimeExceptions, 'EnableBooking': EnableBooking, 'Services': JsonConverters.toJson(Services,'List',context!), 'Resources': JsonConverters.toJson(Resources,'List',context!), 'Fields': JsonConverters.toJson(Fields,'List',context!), 'FieldOptions': JsonConverters.toJson(FieldOptions,'List',context!), 'ScheduleViewOptions': JsonConverters.toJson(ScheduleViewOptions,'List',context!) }; getTypeName() => "HomepageSchedulerSettingsQueryResponse"; TypeContext? context = _ctx; } // @Route("/homepage/scheduler/settings", "GET") class HomepageSchedulerSettingsQuery implements IReturn, ICompany, ICompanyRequest, IConvertible, IGet { /** * Enter the company you want to see news for, if blank and you are an admin, your company id will be used */ // @ApiMember(Description="Enter the company you want to see news for, if blank and you are an admin, your company id will be used", ParameterType="query") String? CompanyId; /** * If you want to include the services that is connected */ // @ApiMember(DataType="boolean", Description="If you want to include the services that is connected", ParameterType="query") bool? IncludeServices; /** * If you want to include the resources that is connected */ // @ApiMember(DataType="boolean", Description="If you want to include the resources that is connected", ParameterType="query") bool? IncludeResources; /** * If you want to include the scheduler fields that is connected */ // @ApiMember(DataType="boolean", Description="If you want to include the scheduler fields that is connected", ParameterType="query") bool? IncludeFields; /** * If you want to include the service to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the service to select from", ParameterType="query") bool? IncludeServiceOptions; /** * If you want to include the resources to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the resources to select from", ParameterType="query") bool? IncludeResourceOptions; /** * If you want to include the scheduler fields to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the scheduler fields to select from", ParameterType="query") bool? IncludeFieldOptions; /** * If you want to include the schedule views to select from */ // @ApiMember(DataType="boolean", Description="If you want to include the schedule views to select from", ParameterType="query") bool? IncludeScheduleViewOptions; /** * The homeage sitepath. */ // @ApiMember(Description="The homeage sitepath.") String? SitePath; HomepageSchedulerSettingsQuery({this.CompanyId,this.IncludeServices,this.IncludeResources,this.IncludeFields,this.IncludeServiceOptions,this.IncludeResourceOptions,this.IncludeFieldOptions,this.IncludeScheduleViewOptions,this.SitePath}); HomepageSchedulerSettingsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; IncludeServices = json['IncludeServices']; IncludeResources = json['IncludeResources']; IncludeFields = json['IncludeFields']; IncludeServiceOptions = json['IncludeServiceOptions']; IncludeResourceOptions = json['IncludeResourceOptions']; IncludeFieldOptions = json['IncludeFieldOptions']; IncludeScheduleViewOptions = json['IncludeScheduleViewOptions']; SitePath = json['SitePath']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'IncludeServices': IncludeServices, 'IncludeResources': IncludeResources, 'IncludeFields': IncludeFields, 'IncludeServiceOptions': IncludeServiceOptions, 'IncludeResourceOptions': IncludeResourceOptions, 'IncludeFieldOptions': IncludeFieldOptions, 'IncludeScheduleViewOptions': IncludeScheduleViewOptions, 'SitePath': SitePath }; createResponse() => HomepageSchedulerSettingsQueryResponse(); getResponseTypeName() => "HomepageSchedulerSettingsQueryResponse"; getTypeName() => "HomepageSchedulerSettingsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'ICompanyRequest': TypeInfo(TypeOf.Interface), 'HomepageSchedulerServiceResponse': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerServiceResponse()), 'Uri': TypeInfo(TypeOf.Class, create:() => Uri()), 'HomepageSchedulerResourceResponse': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerResourceResponse()), 'HomepageSchedulerFieldResponse': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerFieldResponse()), 'HomepageSchedulerFieldOptionsResponse': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerFieldOptionsResponse()), 'ScheduleViewResponse': TypeInfo(TypeOf.Class, create:() => ScheduleViewResponse()), 'HomepageSchedulerSettingsQueryResponse': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerSettingsQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'HomepageSchedulerSettingsQuery': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerSettingsQuery()), });