/* Options: Date: 2024-11-21 12:05:20 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: AvailableTimesQuery.* //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 ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/services/{ServiceId}/availabletimes", "GET")] public partial class AvailableTimesQuery : IReturn, IInterval { public AvailableTimesQuery() { Resources = new List{}; } /// ///Company to show services for /// [ApiMember(Description="Company to show services for", ParameterType="query")] public virtual Guid? CompanyId { get; set; } /// ///Service id /// [ApiMember(Description="Service id", IsRequired=true, ParameterType="path")] public virtual int ServiceId { get; set; } /// ///From what datetime to show available times /// [ApiMember(DataType="dateTime", Description="From what datetime to show available times", IsRequired=true, ParameterType="query")] public virtual DateTime From { get; set; } /// ///To what datetime to show available times /// [ApiMember(DataType="dateTime", Description="To what datetime to show available times", IsRequired=true, ParameterType="query")] public virtual DateTime To { get; set; } /// ///Here you can select one of the resource in each resourcetype connected to the service, if none is selected it will show available times for all /// [ApiMember(Description="Here you can select one of the resource in each resourcetype connected to the service, if none is selected it will show available times for all", ParameterType="query")] public virtual List Resources { get; set; } /// ///Here you select number of resources to book (in each resourcetype). Default is 1. /// [ApiMember(Description="Here you select number of resources to book (in each resourcetype). Default is 1.", ParameterType="query")] public virtual int NumberOfResources { get; set; } /// ///If you want to include the connected resource types and resources /// [ApiMember(Description="If you want to include the connected resource types and resources", ParameterType="query")] public virtual bool ShowPerResource { get; set; } /// ///Both start and time time should be inside test interval. Default is false which means only start time needs to be inside. /// [ApiMember(DataType="bool", Description="Both start and time time should be inside test interval. Default is false which means only start time needs to be inside.", ParameterType="query")] public virtual bool InsideSearchInterval { get; set; } /// ///The duration you want to book. Needs to withing the service Min and Max. If not set it will use the service duration /// [ApiMember(DataType="bool", Description="The duration you want to book. Needs to withing the service Min and Max. If not set it will use the service duration", ParameterType="query")] public virtual int? Duration { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } public partial class AvailableTimesResourceTypeResource { /// ///The resourcetype id /// [ApiMember(Description="The resourcetype id")] public virtual int ResourceTypeId { get; set; } /// ///The resource id /// [ApiMember(Description="The resource id")] public virtual int ResourceId { get; set; } } public partial class AvailableTimesResponse { public AvailableTimesResponse() { Times = new List{}; } public virtual Guid CompanyId { get; set; } public virtual int ServiceId { get; set; } public virtual string TimesFreeTextSingle { get; set; } public virtual string TimesFreeTextMultiple { get; set; } public virtual List Times { get; set; } } public partial class AvailableTimesSum : IAvailableTime { public virtual DateTime From { get; set; } public virtual DateTime To { get; set; } public virtual int Free { get; set; } public virtual int FreeSpots { get; set; } public virtual IEnumerable ExceptionTexts { get; set; } } public partial class ExceptionText { public virtual string Reason { get; set; } public virtual string ReasonPublic { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface IAvailableTime : IInterval { int Free { get; set; } } public partial interface IInterval { DateTime From { get; set; } DateTime To { get; set; } } }