' Options: 'Date: 2024-11-21 11:42:34 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.bokamera.se ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: 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 Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Globalization Imports ServiceStack.Data Imports System.IO Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Db Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Db Public Partial Class BaseModel End Class Public Partial Class EmailTemplate Inherits BaseModel Public Overridable Property Name As String Public Overridable Property Description As String Public Overridable Property Body As String Public Overridable Property Type As Integer Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) Public Overridable Property Id As Integer End Class Public Partial Class NewsletterTemplate Inherits BaseModel Public Overridable Property SendMethod As SendMethod Public Overridable Property EmailTemplate As EmailTemplate Public Overridable Property CompanyId As Guid Public Overridable Property Id As Integer Public Overridable Property Heading As String Public Overridable Property Body As String Public Overridable Property ImageUrl As String Public Overridable Property SendMethodId As Integer Public Overridable Property EmailTemplateId As Nullable(Of Integer) Public Overridable Property Created As Date Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) End Class Public Partial Class SendMethod Inherits BaseModel Public Overridable Property Name As String Public Overridable Property Description As String Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) Public Overridable Property Id As Integer End Class End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class NewsletterEmailTemplatesQueryResponse ''' '''The email template id ''' Public Overridable Property Id As Integer ''' '''The email template name. ''' Public Overridable Property Name As String ''' '''The email template description. ''' Public Overridable Property Description As String ''' '''The email template html content. ''' Public Overridable Property Body As String End Class Public Partial Class NewsletterSendMethodQueryResponse ''' '''The send method id ''' Public Overridable Property Id As Integer ''' '''The send method name. ''' Public Overridable Property Name As String ''' '''The send method description. ''' Public Overridable Property Description As String End Class Public Partial Class NewsletterTemplatesQuery Inherits QueryDb(Of NewsletterTemplate, NewsletterTemplatesQueryResponse) Implements IReturn(Of QueryResponse(Of NewsletterTemplatesQueryResponse)) Implements ICompany ''' '''The company id, if empty will use the company id for the user you are logged in with. ''' Public Overridable Property CompanyId As Nullable(Of Guid) ''' '''The newsletter template id. ''' Public Overridable Property Id As Nullable(Of Integer) ''' '''If you want to include the message send method information ''' Public Overridable Property IncludeSendMethodInformation As Boolean ''' '''If you want to include the email template information ''' Public Overridable Property IncludeEmailTemplateInformation As Boolean End Class Public Partial Class NewsletterTemplatesQueryResponse ''' '''The newsletter template id ''' Public Overridable Property Id As Integer ''' '''The newsletter template heading. ''' Public Overridable Property Heading As String ''' '''The newsletter template body. ''' Public Overridable Property Body As String ''' '''The email template the newsletter uses. ''' Public Overridable Property EmailTemplateId As Nullable(Of Integer) ''' '''Send Method. 1 = Email, 2 = SMS ''' Public Overridable Property SendMethodId As Integer ''' '''The newsletter template image url. ''' Public Overridable Property ImageUrl As String ''' '''The newsletter created date. ''' Public Overridable Property Created As Date ''' '''Send method information. ''' Public Overridable Property SendMethodInformation As NewsletterSendMethodQueryResponse ''' '''Email template information. ''' Public Overridable Property EmailTemplateInformation As NewsletterEmailTemplatesQueryResponse End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace