/* Options: Date: 2024-06-17 04:19:13 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateHomepageSchedulerSettings.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class HomepageSchedulerResource implements IConvertible { /** * The resource id. */ // @ApiMember(Description="The resource id.") int? Id; HomepageSchedulerResource({this.Id}); HomepageSchedulerResource.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; return this; } Map toJson() => { 'Id': Id }; getTypeName() => "HomepageSchedulerResource"; TypeContext? context = _ctx; } class HomepageSchedulerService implements IConvertible { /** * The service id. */ // @ApiMember(Description="The service id.") int? Id; HomepageSchedulerService({this.Id}); HomepageSchedulerService.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; return this; } Map toJson() => { 'Id': Id }; getTypeName() => "HomepageSchedulerService"; TypeContext? context = _ctx; } class HomepageScheduleField implements IConvertible { /** * The field id. */ // @ApiMember(Description="The field id.", IsRequired=true) int? Id; /** * If the field showed on the booking. */ // @ApiMember(Description="If the field showed on the booking.", IsRequired=true) bool? ShowOnBooking; /** * If the field showed on the bookings tooltip. */ // @ApiMember(Description="If the field showed on the bookings tooltip.", IsRequired=true) bool? ShowOnTooltip; HomepageScheduleField({this.Id,this.ShowOnBooking,this.ShowOnTooltip}); HomepageScheduleField.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() => "HomepageScheduleField"; TypeContext? context = _ctx; } 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", "PUT") // @ValidateRequest(Validator="IsAuthenticated") class UpdateHomepageSchedulerSettings implements IReturn, ICompany, IConvertible, IPut { /** * 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.") 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; /** * What resources you want to be shown in scheduler. */ // @ApiMember(Description="What resources you want to be shown in scheduler.") List? Resources; /** * What services you want to be shown in scheduler. */ // @ApiMember(Description="What services you want to be shown in scheduler.") List? Services; /** * What fields you want to be shown in scheduler. */ // @ApiMember(Description="What fields you want to be shown in scheduler.") List? Fields; UpdateHomepageSchedulerSettings({this.CompanyId,this.Active,this.ScheduleViewId,this.ScheduleTimeSlotMinutes,this.StartTime,this.EndTime,this.ShowTimeExceptions,this.EnableBooking,this.Resources,this.Services,this.Fields}); UpdateHomepageSchedulerSettings.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']; Resources = JsonConverters.fromJson(json['Resources'],'List',context!); Services = JsonConverters.fromJson(json['Services'],'List',context!); Fields = JsonConverters.fromJson(json['Fields'],'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, 'Resources': JsonConverters.toJson(Resources,'List',context!), 'Services': JsonConverters.toJson(Services,'List',context!), 'Fields': JsonConverters.toJson(Fields,'List',context!) }; createResponse() => HomepageSchedulerSettingsQueryResponse(); getResponseTypeName() => "HomepageSchedulerSettingsQueryResponse"; getTypeName() => "UpdateHomepageSchedulerSettings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'HomepageSchedulerResource': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerResource()), 'HomepageSchedulerService': TypeInfo(TypeOf.Class, create:() => HomepageSchedulerService()), 'HomepageScheduleField': TypeInfo(TypeOf.Class, create:() => HomepageScheduleField()), '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:() => []), 'UpdateHomepageSchedulerSettings': TypeInfo(TypeOf.Class, create:() => UpdateHomepageSchedulerSettings()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), });