/* Options: Date: 2024-12-03 18:25: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: HomepageImagesQuery.* //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 BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class HomepageImage : BaseModel { [Required] public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } public virtual string Title { get; set; } public virtual string Description { get; set; } [Required] public virtual string ImageUrl { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { public partial class HomepageImageQueryResponse { /// ///The company id. /// [ApiMember(Description="The company id.")] public virtual Guid CompanyId { get; set; } /// ///The homepage image id. /// [ApiMember(Description="The homepage image id.")] public virtual int Id { get; set; } /// ///The image title. /// [ApiMember(Description="The image title.")] public virtual string Title { get; set; } /// ///The image description. /// [ApiMember(Description="The image description.")] public virtual string Description { get; set; } /// ///The image url. /// [ApiMember(Description="The image url.")] public virtual Uri ImageUrl { get; set; } } [Route("/homepage/images", "GET")] public partial class HomepageImagesQuery : QueryDb, IReturn>, ICompanyRequest { /// ///Enter the company you want to see news for, if blank and you are an admin, your company id will be used /// [ApiMember(Description="Enter the company you want to see news for, if blank and you are an admin, your company id will be used", ParameterType="query")] public virtual Guid? CompanyId { get; set; } /// ///The image id. /// [ApiMember(Description="The image id.")] public virtual int? Id { get; set; } /// ///The homeage sitepath. /// [ApiMember(Description="The homeage sitepath.")] public virtual string SitePath { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompanyRequest { Guid? CompanyId { get; set; } string SitePath { get; set; } } }