/* Options:
Date: 2024-07-03 12:36:31
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bokamera.se
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: True
//ExportValueTypes: False
IncludeTypes: UpdateHomepageSchedulerSettings.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using System.Globalization;
using System.IO;
using BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class HomepageScheduleField
{
///
///The field id.
///
[ApiMember(Description="The field id.", IsRequired=true)]
public virtual int Id { get; set; }
///
///If the field showed on the booking.
///
[ApiMember(Description="If the field showed on the booking.", IsRequired=true)]
public virtual bool ShowOnBooking { get; set; }
///
///If the field showed on the bookings tooltip.
///
[ApiMember(Description="If the field showed on the bookings tooltip.", IsRequired=true)]
public virtual bool ShowOnTooltip { get; set; }
}
public partial class HomepageSchedulerFieldOptionsResponse
{
///
///The field id.
///
[ApiMember(Description="The field id.")]
public virtual int Id { get; set; }
///
///The field name.
///
[ApiMember(Description="The field name.")]
public virtual string Name { get; set; }
///
///The field description.
///
[ApiMember(Description="The field description.")]
public virtual string Description { get; set; }
///
///The field sort order when listing.
///
[ApiMember(Description="The field sort order when listing.")]
public virtual int SortOrder { get; set; }
}
public partial class HomepageSchedulerFieldResponse
{
///
///The field id.
///
[ApiMember(Description="The field id.")]
public virtual int Id { get; set; }
///
///If the field should be shown on booking.
///
[ApiMember(Description="If the field should be shown on booking.")]
public virtual bool ShowOnBooking { get; set; }
///
///If the field should be shown on tooltip.
///
[ApiMember(Description="If the field should be shown on tooltip.")]
public virtual bool ShowOnTooltip { get; set; }
}
public partial class HomepageSchedulerResource
{
///
///The resource id.
///
[ApiMember(Description="The resource id.")]
public virtual int Id { get; set; }
}
public partial class HomepageSchedulerResourceResponse
{
///
///The resource id.
///
[ApiMember(Description="The resource id.")]
public virtual int Id { get; set; }
///
///The resource name.
///
[ApiMember(Description="The resource name.")]
public virtual string Name { get; set; }
///
///The resource description.
///
[ApiMember(Description="The resource description.")]
public virtual string Description { get; set; }
///
///The resource image url.
///
[ApiMember(Description="The resource image url.")]
public virtual Uri ImageUrl { get; set; }
}
public partial class HomepageSchedulerService
{
///
///The service id.
///
[ApiMember(Description="The service id.")]
public virtual int Id { get; set; }
}
public partial class HomepageSchedulerServiceResponse
{
///
///The service id.
///
[ApiMember(Description="The service id.")]
public virtual int Id { get; set; }
///
///The service name.
///
[ApiMember(Description="The service name.")]
public virtual string Name { get; set; }
///
///The service description.
///
[ApiMember(Description="The service description.")]
public virtual string Description { get; set; }
///
///The service image url.
///
[ApiMember(Description="The service image url.")]
public virtual Uri ImageUrl { get; set; }
}
public partial class HomepageSchedulerSettingsQueryResponse
{
public HomepageSchedulerSettingsQueryResponse()
{
Services = new List{};
Resources = new List{};
Fields = new List{};
FieldOptions = new List{};
ScheduleViewOptions = new List{};
}
///
///The company id.
///
[ApiMember(Description="The company id.")]
public virtual Guid CompanyId { get; set; }
///
///If the user schedule is activated.
///
[ApiMember(Description="If the user schedule is activated.")]
public virtual bool Active { get; set; }
///
///If the user schedule views id.
///
[ApiMember(Description="If the user schedule views id.")]
public virtual int ScheduleViewId { get; set; }
///
///If the user schedule time slots in minutes.
///
[ApiMember(Description="If the user schedule time slots in minutes.")]
public virtual int ScheduleTimeSlotMinutes { get; set; }
///
///If the user schedule time start time.
///
[ApiMember(Description="If the user schedule time start time.")]
public virtual TimeSpan? StartTime { get; set; }
///
///If the user schedule time end time.
///
[ApiMember(Description="If the user schedule time end time.")]
public virtual TimeSpan? EndTime { get; set; }
///
///If the user schedule should contain time exceptions.
///
[ApiMember(Description="If the user schedule should contain time exceptions.")]
public virtual bool ShowTimeExceptions { get; set; }
///
///If allow booking in the scheduler.
///
[ApiMember(Description="If allow booking in the scheduler.")]
public virtual bool EnableBooking { get; set; }
///
///The homepage schedule services that are selected
///
[ApiMember(Description="The homepage schedule services that are selected")]
public virtual List Services { get; set; }
///
///The homepage schedule resources that are selected
///
[ApiMember(Description="The homepage schedule resources that are selected")]
public virtual List Resources { get; set; }
///
///The homepage schedule fields that are selected
///
[ApiMember(Description="The homepage schedule fields that are selected")]
public virtual List Fields { get; set; }
///
///The homepage schedule fields select from
///
[ApiMember(Description="The homepage schedule fields select from")]
public virtual List FieldOptions { get; set; }
///
///The available schedule view options to choose from
///
[ApiMember(Description="The available schedule view options to choose from")]
public virtual List ScheduleViewOptions { get; set; }
}
public partial class ScheduleViewResponse
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
}
[Route("/homepage/scheduler/settings", "PUT")]
[ValidateRequest("IsAuthenticated")]
public partial class UpdateHomepageSchedulerSettings
: IReturn, ICompany
{
public UpdateHomepageSchedulerSettings()
{
Resources = new List{};
Services = new List{};
Fields = new List{};
}
///
///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.")]
public virtual Guid? CompanyId { get; set; }
///
///If the user schedule is activated.
///
[ApiMember(Description="If the user schedule is activated.")]
public virtual bool? Active { get; set; }
///
///If the user schedule views id.
///
[ApiMember(Description="If the user schedule views id.")]
public virtual int? ScheduleViewId { get; set; }
///
///If the user schedule time slots in minutes.
///
[ApiMember(Description="If the user schedule time slots in minutes.")]
public virtual int? ScheduleTimeSlotMinutes { get; set; }
///
///If the user schedule time start time.
///
[ApiMember(Description="If the user schedule time start time.")]
public virtual TimeSpan? StartTime { get; set; }
///
///If the user schedule time end time.
///
[ApiMember(Description="If the user schedule time end time.")]
public virtual TimeSpan? EndTime { get; set; }
///
///If the user schedule should contain time exceptions.
///
[ApiMember(Description="If the user schedule should contain time exceptions.")]
public virtual bool? ShowTimeExceptions { get; set; }
///
///If allow booking in the scheduler.
///
[ApiMember(Description="If allow booking in the scheduler.")]
public virtual bool? EnableBooking { get; set; }
///
///What resources you want to be shown in scheduler.
///
[ApiMember(Description="What resources you want to be shown in scheduler.")]
public virtual List Resources { get; set; }
///
///What services you want to be shown in scheduler.
///
[ApiMember(Description="What services you want to be shown in scheduler.")]
public virtual List Services { get; set; }
///
///What fields you want to be shown in scheduler.
///
[ApiMember(Description="What fields you want to be shown in scheduler.")]
public virtual List Fields { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}