/* Options:
Date: 2024-11-21 11:47: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: UpdateDateSchedule.*
//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 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 AddScheduleResource
{
///
///The resource id
///
[ApiMember(Description="The resource id", IsRequired=true)]
public virtual int Id { get; set; }
}
public partial class AddScheduleService
{
///
///The service id
///
[ApiMember(Description="The service id", IsRequired=true)]
public virtual int Id { get; set; }
}
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; }
}
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; }
}
[Route("/schedules/date/{Id}", "PUT")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ValidateRequest("IsAuthenticated")]
public partial class UpdateDateSchedule
: IReturn, ICompany
{
public UpdateDateSchedule()
{
ScheduleDates = new List{};
Resources = new List{};
Services = new List{};
}
///
///Id of the schedule to update
///
[ApiMember(Description="Id of the schedule to update", IsRequired=true, ParameterType="path")]
public virtual int Id { get; set; }
///
///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 name
///
[ApiMember(Description="The schedule name")]
public virtual string Name { get; set; }
///
///The schedule description
///
[ApiMember(Description="The schedule description")]
public virtual string Description { get; set; }
///
///If schedule is active or not
///
[ApiMember(Description="If schedule is active or not")]
public virtual bool? Active { get; set; }
///
///The number of days the schedule is valid from todays date
///
[ApiMember(Description="The number of days the schedule is valid from todays date", IsRequired=true)]
public virtual int NumberOfScheduleDays { get; set; }
///
///The dates for the schedule. This is the actual timeslots.
///
[ApiMember(Description="The dates for the schedule. This is the actual timeslots.")]
public virtual List ScheduleDates { get; set; }
///
///If the schedule is only connected to some resources, add them here. If empty, it will be used by all resources.
///
[ApiMember(Description="If the schedule is only connected to some resources, add them here. If empty, it will be used by all resources.")]
public virtual List Resources { get; set; }
///
///Set what services the schedule should be connected to.
///
[ApiMember(Description="Set what services the schedule should be connected to.")]
public virtual List Services { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}