/* Options: Date: 2024-11-21 16:47:46 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: CurrentUserQuery.* //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.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class AdminProfile { public virtual Guid CompanyId { get; set; } public virtual Guid Id { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Email { get; set; } public virtual string WorkerId { get; set; } public virtual string Phone { get; set; } } public partial class CompanyCustomerResponse { public CompanyCustomerResponse() { CustomFieldValues = new List{}; } public virtual Guid? CompanyId { get; set; } public virtual string CompanyName { get; set; } public virtual Guid? CustomerId { get; set; } public virtual bool SubscribedToNewsletter { get; set; } public virtual List CustomFieldValues { get; set; } } [Route("/users", "GET")] [ApiResponse(Description="Returned if the service was called without an existing session", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CurrentUserQuery : IReturn { /// ///If you want to include the users favorites /// [ApiMember(DataType="boolean", Description="If you want to include the users favorites", ParameterType="query")] public virtual bool IncludeFavorites { get; set; } public virtual bool IncludeCompanyCustomers { get; set; } } public partial class CurrentUserQueryResponse { public CurrentUserQueryResponse() { Favorites = new List{}; CompanyCustomers = new List{}; } /// ///The user id for your profile. /// [ApiMember(Description="The user id for your profile.")] public virtual Guid UserId { get; set; } public virtual List Favorites { get; set; } public virtual UserProfileResponse UserProfile { get; set; } public virtual UserProfileResponse CustomerProfile { get; set; } public virtual AdminProfile AdminProfile { get; set; } public virtual List CompanyCustomers { get; set; } } public partial class CustomFieldDataResponse { public virtual int Id { get; set; } public virtual string Column { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual string Value { get; set; } /// ///Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' /// [ApiMember(Description="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'")] public virtual string DataType { get; set; } } public partial class UserFavorites { public virtual Guid CompanyId { get; set; } public virtual CompanyQueryResponse Company { get; set; } } public partial class UserProfileResponse { public virtual Guid Id { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Phone { get; set; } public virtual string Email { get; set; } } }