/* Options: Date: 2024-11-21 12:05:20 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: SuperAdminUpdateCompanyUser.* //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 AddCompanyUserRolesResponse { public virtual Guid RoleId { get; set; } } public partial class CompanyUserQueryResponse { public CompanyUserQueryResponse() { Roles = new List{}; } public virtual Guid Id { get; set; } public virtual Guid CompanyId { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Email { get; set; } public virtual string Phone { get; set; } public virtual string WorkerId { get; set; } public virtual int? ResourceId { get; set; } /// ///The resource information connected to the administrator. /// [ApiMember(Description="The resource information connected to the administrator.")] public virtual CompanyUserResource Resource { get; set; } /// ///The roles that are connected to the administrator. /// [ApiMember(Description="The roles that are connected to the administrator.")] public virtual List Roles { get; set; } public virtual bool Active { get; set; } public virtual DateTime Created { get; set; } public virtual DateTime Updated { get; set; } } public partial class CompanyUserResource { /// ///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; } /// ///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; } } public partial class CompanyUserRolesQueryResponse { public virtual Guid RoleId { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } } [Route("/superadmin/administrators/{Id}", "PUT")] [ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400)] [ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)] public partial class SuperAdminUpdateCompanyUser : IReturn, ICompany { public SuperAdminUpdateCompanyUser() { Roles = new List{}; } /// ///Enter the company and id for the application user, if blank company id and you are an admin, your company id will be used. /// [ApiMember(Description="Enter the company and id for the application user, if blank company id and you are an admin, your company id will be used.", ParameterType="query")] public virtual Guid? CompanyId { get; set; } /// ///Enter the user id for the administrator. /// [ApiMember(Description="Enter the user id for the administrator.", IsRequired=true, ParameterType="path")] public virtual Guid Id { get; set; } [ApiMember] public virtual string Firstname { get; set; } [ApiMember] public virtual string Lastname { get; set; } [ApiMember] public virtual string Phone { get; set; } [ApiMember] public virtual string Email { get; set; } [ApiMember] public virtual int? ResourceId { get; set; } [ApiMember] public virtual List Roles { get; set; } [ApiMember] public virtual int? WorkerId { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }