/* Options: Date: 2024-06-17 00:42:56 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: SupportCaseCommentQuery.* //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.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class CaseComment : BaseModel { [Required] public virtual Guid CompanyId { get; set; } [Required] public virtual int SupportCaseId { get; set; } public virtual int Id { get; set; } [Required] public virtual string Comment { get; set; } [Required] public virtual bool Deleted { get; set; } [Required] public virtual string CreatedBy { get; set; } [Required] public virtual DateTime Created { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/support/cases/{SupportCaseId}/comments", "GET")] [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 SupportCaseCommentQuery : QueryDb, IReturn>, ICompany { /// ///Enter the company id, if blank company id and you are an admin, your company id will be used. /// [ApiMember(Description="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired=true)] public virtual Guid? CompanyId { get; set; } /// ///The support case id /// [ApiMember(Description="The support case id", IsRequired=true, ParameterType="path")] public virtual int SupportCaseId { get; set; } } public partial class SupportCaseCommentsResponse { /// ///The case id /// [ApiMember(Description="The case id")] public virtual int SupportCaseId { get; set; } /// ///The comments id /// [ApiMember(Description="The comments id")] public virtual int Id { get; set; } /// ///The case comment /// [ApiMember(Description="The case comment")] public virtual string Comment { get; set; } /// ///The case comment created by /// [ApiMember(Description="The case comment created by")] public virtual string CreatedBy { get; set; } /// ///The case comment created date /// [ApiMember(Description="The case comment created date")] public virtual DateTime Created { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }