/* Options: Date: 2024-06-26 10:50:39 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.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: RemoveResource.* //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 System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/resourcetypes/{Id}/removeresource", "DELETE")] [ValidateRequest("IsAuthenticated")] public partial class RemoveResource : IReturn, ICompany { public RemoveResource() { 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 id /// [ApiMember(Description="The ResourceType id", IsRequired=true, ParameterType="path")] public virtual int Id { get; set; } /// ///The resources to be removed /// [ApiMember(Description="The resources to be removed")] public virtual List Resources { get; set; } } public partial class RemoveResourceTypeResource { /// ///The resource id /// [ApiMember(Description="The resource id")] public virtual int Id { 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; } } }