/* Options: Date: 2024-11-21 12:18:18 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: TrialsQuery.* //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.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class TrialType : BaseModel { [Required] public virtual string Name { get; set; } [Required] public virtual int Days { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } public virtual int Id { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { public partial class TrialQueryResponse { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual int TrialDays { get; set; } } [Route("/trials", "GET")] [ValidateRequest("IsAuthenticated")] public partial class TrialsQuery : QueryDb, IReturn> { /// ///Trial Id /// [ApiMember(Description="Trial Id", IsRequired=true, ParameterType="query")] public virtual int? Id { get; set; } } }