/* Options: Date: 2024-11-21 12:02:04 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: DeleteDateSchedule.* //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 DateScheduleDateResponse { public virtual int Id { get; set; } public virtual DateTime From { get; set; } public virtual DateTime To { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } public partial class DateScheduleQueryResponse { public DateScheduleQueryResponse() { ScheduleDates = new List{}; Resources = new List{}; Services = new List{}; } /// ///The schedule id /// [ApiMember(Description="The schedule id")] public virtual int Id { get; set; } /// ///Name of the schedule /// [ApiMember(Description="Name of the schedule")] public virtual string Name { get; set; } /// ///Description of the schedule /// [ApiMember(Description="Description of the schedule")] public virtual string Description { get; set; } /// ///If the schedule is active or not /// [ApiMember(Description="If the schedule is active or not")] public virtual bool Active { get; set; } /// ///If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this. /// [ApiMember(Description="If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this.", IsRequired=true)] public virtual bool? IsResourceSpecific { get; set; } /// ///Schedule dates /// [ApiMember(Description="Schedule dates")] public virtual List ScheduleDates { get; set; } /// ///The resources that is connected to the schedule /// [ApiMember(Description="The resources that is connected to the schedule")] public virtual List Resources { get; set; } /// ///The services that is connected to the schedule /// [ApiMember(Description="The services that is connected to the schedule")] public virtual List Services { get; set; } /// ///The timestamp when the schedule was updated /// [ApiMember(Description="The timestamp when the schedule was updated", IsRequired=true)] public virtual DateTime UpdatedDate { get; set; } /// ///The timestamp when the schedule was created /// [ApiMember(Description="The timestamp when the schedule was created", IsRequired=true)] public virtual DateTime CreatedDate { get; set; } public virtual ResponseStatus ResponseStatus { get; set; } } [Route("/schedules/date/{Id}", "DELETE")] [ValidateRequest("IsAuthenticated")] public partial class DeleteDateSchedule : IReturn, ICompany { /// ///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 schedule id /// [ApiMember(Description="The schedule id", IsRequired=true, ParameterType="path")] public virtual int Id { get; set; } } public partial class ScheduleResources { public virtual int Id { get; set; } /// ///Name of the resource /// [ApiMember(Description="Name of the resource")] public virtual string Name { get; set; } /// ///The image url of the resource /// [ApiMember(Description="The image url of the resource")] public virtual Uri ImageUrl { get; set; } } public partial class ScheduleServices { public virtual int Id { get; set; } /// ///Name of the service /// [ApiMember(Description="Name of the service")] public virtual string Name { get; set; } /// ///The image url of the service /// [ApiMember(Description="The image url of the service")] public virtual Uri ImageUrl { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }