/* Options: Date: 2024-11-23 09:02:29 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: NewsletterTemplatesQuery.* //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.Interfaces; using BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class EmailTemplate : BaseModel { [Required] public virtual string Name { get; set; } [Required] public virtual string Description { get; set; } [Required] public virtual string Body { get; set; } [Required] public virtual int Type { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } public virtual int Id { get; set; } } public partial class NewsletterTemplate : BaseModel { public virtual SendMethod SendMethod { get; set; } public virtual EmailTemplate EmailTemplate { get; set; } [Required] public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } [Required] public virtual string Heading { get; set; } [Required] public virtual string Body { get; set; } public virtual string ImageUrl { get; set; } [Required] public virtual int SendMethodId { get; set; } public virtual int? EmailTemplateId { get; set; } [Required] public virtual DateTime Created { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } public partial class SendMethod : BaseModel { [Required] public virtual string Name { get; set; } [Required] public virtual string Description { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } public virtual int Id { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { public partial class NewsletterEmailTemplatesQueryResponse { /// ///The email template id /// [ApiMember(Description="The email template id")] public virtual int Id { get; set; } /// ///The email template name. /// [ApiMember(Description="The email template name.")] public virtual string Name { get; set; } /// ///The email template description. /// [ApiMember(Description="The email template description.")] public virtual string Description { get; set; } /// ///The email template html content. /// [ApiMember(Description="The email template html content.")] public virtual string Body { get; set; } } public partial class NewsletterSendMethodQueryResponse { /// ///The send method id /// [ApiMember(Description="The send method id")] public virtual int Id { get; set; } /// ///The send method name. /// [ApiMember(Description="The send method name.")] public virtual string Name { get; set; } /// ///The send method description. /// [ApiMember(Description="The send method description.")] public virtual string Description { get; set; } } [Route("/newsletter/templates", "GET")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class NewsletterTemplatesQuery : QueryDb, IReturn>, ICompany { /// ///The company id, if empty will use the company id for the user you are logged in with. /// [ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")] public virtual Guid? CompanyId { get; set; } /// ///The newsletter template id. /// [ApiMember(Description="The newsletter template id.")] public virtual int? Id { get; set; } /// ///If you want to include the message send method information /// [ApiMember(DataType="boolean", Description="If you want to include the message send method information", ParameterType="query")] public virtual bool IncludeSendMethodInformation { get; set; } /// ///If you want to include the email template information /// [ApiMember(DataType="boolean", Description="If you want to include the email template information", ParameterType="query")] public virtual bool IncludeEmailTemplateInformation { get; set; } } public partial class NewsletterTemplatesQueryResponse { /// ///The newsletter template id /// [ApiMember(Description="The newsletter template id")] public virtual int Id { get; set; } /// ///The newsletter template heading. /// [ApiMember(Description="The newsletter template heading.")] public virtual string Heading { get; set; } /// ///The newsletter template body. /// [ApiMember(Description="The newsletter template body.")] public virtual string Body { get; set; } /// ///The email template the newsletter uses. /// [ApiMember(Description="The email template the newsletter uses.")] public virtual int? EmailTemplateId { get; set; } /// ///Send Method. 1 = Email, 2 = SMS /// [ApiMember(Description="Send Method. 1 = Email, 2 = SMS")] public virtual int SendMethodId { get; set; } /// ///The newsletter template image url. /// [ApiMember(Description="The newsletter template image url.")] public virtual string ImageUrl { get; set; } /// ///The newsletter created date. /// [ApiMember(Description="The newsletter created date.")] public virtual DateTime Created { get; set; } /// ///Send method information. /// [ApiMember(Description="Send method information.")] public virtual NewsletterSendMethodQueryResponse SendMethodInformation { get; set; } /// ///Email template information. /// [ApiMember(Description="Email template information.")] public virtual NewsletterEmailTemplatesQueryResponse EmailTemplateInformation { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }