/* Options:
Date: 2024-11-21 12:15:22
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: NextFreeTimeQuery.*
//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
{
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; }
}
[Route("/services/{ServiceId}/nextfreetime", "GET")]
public partial class NextFreeTimeQuery
: IReturn, IInterval
{
public NextFreeTimeQuery()
{
Resources = new List{};
}
///
///Company to show available time for
///
[ApiMember(Description="Company to show available time 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 search available times
///
[ApiMember(DataType="dateTime", Description="From what datetime to search available times", IsRequired=true, ParameterType="query")]
public virtual DateTime From { get; set; }
///
///To what datetime to show available times. Optional, if no datetime is set it will search one year
///
[ApiMember(DataType="dateTime", Description="To what datetime to show available times. Optional, if no datetime is set it will search one year", IsRequired=true, ParameterType="query")]
public virtual DateTime To { get; set; }
///
///Here you can select one of the resource in each resource type 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 resource type 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 resource type). Default is 1.
///
[ApiMember(Description="Here you select number of resources to book (in each resource type). Default is 1.", ParameterType="query")]
public virtual int NumberOfResources { 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; }
///
///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; }
}
}
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; }
}
}