/* Options:
Date: 2024-12-03 18:15:48
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: TestDateSchedule.*
//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 BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class AddDateScheduleDate
{
///
///The from date for the timeslot
///
[ApiMember(Description="The from date for the timeslot", IsRequired=true)]
public virtual DateTime From { get; set; }
///
///The to date for the timeslot
///
[ApiMember(Description="The to date for the timeslot", IsRequired=true)]
public virtual DateTime To { 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("/schedules/date/test", "POST")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ValidateRequest("IsAuthenticated")]
public partial class TestDateSchedule
: IReturn, ICompany, IInterval
{
public TestDateSchedule()
{
ScheduleDates = 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; }
///
///The dates for the schedule. This is the actual timeslots.
///
[ApiMember(Description="The dates for the schedule. This is the actual timeslots.", IsRequired=true)]
public virtual List ScheduleDates { 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; }
///
///The Service Duration
///
[ApiMember(Description="The Service Duration")]
public virtual int? ServiceId { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface IAvailableTime
: IInterval
{
int Free { get; set; }
}
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
public partial interface IInterval
{
DateTime From { get; set; }
DateTime To { get; set; }
}
}