/* Options: Date: 2024-11-21 11:51:02 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: ResourceTypeAvailableResourcesQuery.* //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 AvailableResourceResponse { /// ///The resource id /// [ApiMember(Description="The resource id")] public virtual int Id { get; set; } /// ///The resource name /// [ApiMember(Description="The resource name")] public virtual string Name { get; set; } /// ///The resource description /// [ApiMember(Description="The resource description")] public virtual string Description { get; set; } /// ///The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue. /// [ApiMember(Description="The resource color in scheduler in hexadecimal color code. Example: #00b0f0 for blue.")] public virtual string Color { get; set; } /// ///The image url of the resource /// [ApiMember(Description="The image url of the resource")] public virtual Uri ImageUrl { get; set; } } [Route("/bookings/{Id}/resources/available", "GET")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403)] [ValidateRequest("IsAuthenticated")] public partial class ResourceTypeAvailableResourcesQuery : IReturn, ICompany { /// ///Enter the company and id you want to see the information for a resourcetype, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown /// [ApiMember(Description="Enter the company and id you want to see the information for a resourcetype, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ", ParameterType="query")] public virtual Guid? CompanyId { get; set; } /// ///Enter the id for the booking. /// [ApiMember(Description="Enter the id for the booking.", IsRequired=true, ParameterType="path")] public virtual int Id { get; set; } /// ///Enter the id for a resourcetype. /// [ApiMember(Description="Enter the id for a resourcetype.", IsRequired=true)] public virtual int ResourceTypeId { get; set; } } public partial class ResourceTypeAvailableResourcesQueryResponse { public ResourceTypeAvailableResourcesQueryResponse() { Resources = new List{}; } /// ///The resourcetype id /// [ApiMember(Description="The resourcetype id")] public virtual int Id { get; set; } /// ///The available resources /// [ApiMember(Description="The available resources")] public virtual List Resources { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }