/* Options: Date: 2024-11-21 13:08: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: CreateResourceType.* //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 AddResourceTypeResource { /// ///The resource id /// [ApiMember(Description="The resource id")] public virtual int Id { get; set; } /// ///The priority of the resource. If no priority is set it will take random resource when booking a time. /// [ApiMember(Description="The priority of the resource. If no priority is set it will take random resource when booking a time.")] public virtual int Priority { get; set; } } [Route("/resourcetypes", "POST")] [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 CreateResourceType : IReturn, ICompany { public CreateResourceType() { Resources = 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 resourcetype name /// [ApiMember(Description="The resourcetype name")] public virtual string Name { get; set; } /// ///The resources to be included /// [ApiMember(Description="The resources to be included")] public virtual List Resources { get; set; } /// ///The resourcetype description /// [ApiMember(Description="The resourcetype description")] public virtual string Description { get; set; } /// ///If resourcetype is active or not /// [ApiMember(Description="If resourcetype is active or not")] public virtual bool Active { get; set; } } public partial class ResourceTypeQueryResponse { public ResourceTypeQueryResponse() { Resources = new List{}; } /// ///The resourcetype id /// [ApiMember(Description="The resourcetype id")] public virtual int Id { get; set; } /// ///The resourcetype name /// [ApiMember(Description="The resourcetype name")] public virtual string Name { get; set; } /// ///The resourcetype description /// [ApiMember(Description="The resourcetype description")] public virtual string Description { get; set; } /// ///The resources in the resourcetype. Only shows active resources if not admin. /// [ApiMember(Description="The resources in the resourcetype. Only shows active resources if not admin.")] public virtual List Resources { get; set; } /// ///If resourcetype is active or not /// [ApiMember(Description="If resourcetype is active or not")] public virtual bool Active { get; set; } /// ///Then date when the resource was created /// [ApiMember(Description="Then date when the resource was created")] public virtual DateTime Created { get; set; } /// ///Then date when the resource was updated /// [ApiMember(Description="Then date when the resource was updated")] public virtual DateTime Updated { get; set; } } public partial class ResourceTypeResource { /// ///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 status /// [ApiMember(Description="The resource status")] public virtual bool Active { get; set; } /// ///The resource description /// [ApiMember(Description="The resource description")] public virtual string Description { get; set; } /// ///The resource email /// [ApiMember(Description="The resource email")] public virtual string Email { get; set; } /// ///The resource phone /// [ApiMember(Description="The resource phone")] public virtual string Phone { get; set; } /// ///The resource color /// [ApiMember(Description="The resource color")] public virtual string Color { get; set; } /// ///The resource image /// [ApiMember(Description="The resource image")] public virtual Uri ImageUrl { get; set; } /// ///The priority of the resource /// [ApiMember(Description="The priority of the resource")] public virtual int Priority { get; set; } /// ///If the resource want to receive email notifications /// [ApiMember(Description="If the resource want to receive email notifications")] public virtual bool EmailNotification { get; set; } /// ///If the resource want to receive sms notifications /// [ApiMember(Description="If the resource want to receive sms notifications")] public virtual bool SMSNotification { get; set; } /// ///If the resource want to receive email reminders /// [ApiMember(Description="If the resource want to receive email reminders")] public virtual bool EmailReminder { get; set; } /// ///If the resource want to receive sms reminders /// [ApiMember(Description="If the resource want to receive sms reminders")] public virtual bool SMSReminder { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }