/* Options: Date: 2024-11-21 12:09:21 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: CustomerCommentsQuery.* //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.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class CustomerComment : BaseModel { [Required] public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } [Required] public virtual Guid CustomerId { get; set; } [Required] public virtual string Comments { get; set; } [Required] public virtual DateTime Updated { get; set; } [Required] public virtual DateTime Created { get; set; } public virtual string ImageUrl { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/customers/{CustomerId}/comments", "GET")] [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)] [ValidateRequest("IsAuthenticated")] public partial class CustomerCommentsQuery : QueryDb, IReturn>, ICompany { [ApiMember(IsRequired=true)] public virtual Guid CustomerId { get; set; } [ApiMember(IsRequired=true)] public virtual Guid? CompanyId { get; set; } } public partial class CustomerCommentsResponse { public virtual int Id { get; set; } public virtual Guid CustomerId { get; set; } public virtual string Comments { get; set; } public virtual DateTime Updated { get; set; } public virtual DateTime Created { get; set; } public virtual Uri ImageUrl { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }