' Options: 'Date: 2024-06-16 18:10:58 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://testapi.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: CreateMessageTemplate.* '''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 System.IO Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class CreateMessageTemplate Implements IReturn(Of MessageTemplatesQueryResponse) Implements ICompany Public Sub New() Services = New Integer(){} End Sub ''' '''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 message type id. See GET /messages/templates/types ''' Public Overridable Property TypeId As Integer ''' '''The message template name. ''' Public Overridable Property Name As String ''' '''The message template title. ''' Public Overridable Property Title As String ''' '''The message template title. ''' Public Overridable Property Body As String ''' '''The message template sender (an email for message types with sendmethod 1, for SMS this cannot be set). ''' Public Overridable Property Sender As String ''' '''Template Language sv / en ''' Public Overridable Property Language As String ''' '''The services that is connected to the template. If null it will be connected to all services. ''' Public Overridable Property Services As Integer() End Class Public Partial Class MessageServices Public Overridable Property Id As Integer ''' '''Name of the service ''' Public Overridable Property Name As String ''' '''The image url of the service ''' Public Overridable Property ImageUrl As Uri End Class Public Partial Class MessageTemplatesQueryResponse Public Sub New() Services = New List(Of MessageServices) End Sub ''' '''The message template id ''' Public Overridable Property Id As Integer ''' '''The message template name. ''' Public Overridable Property Name As String ''' '''The message template title. ''' Public Overridable Property Title As String ''' '''The message template title. ''' Public Overridable Property Body As String ''' '''The message template sender (an email for message types with sendmethod 1, for SMS this cannot be set). ''' Public Overridable Property Sender As String ''' '''If the message template is the default message currently in use. ''' Public Overridable Property [Default] As Boolean ''' '''If the message type information. ''' Public Overridable Property MessageType As MessageTypeQueryResponse ''' '''Template language. ''' Public Overridable Property Language As String ''' '''The connected services which the template is valid for. If empty then it's valid for all services. ''' Public Overridable Property Services As List(Of MessageServices) End Class Public Partial Class MessageTypeQueryResponse ''' '''The message type id ''' Public Overridable Property Id As Integer ''' '''The message type name. ''' Public Overridable Property Name As String ''' '''The message type description. ''' Public Overridable Property Description As String ''' '''The maximum number of charachters that can be entered into message body using this type. ''' Public Overridable Property MaxCharacters As Integer ''' '''The default text that is always included when sending messages of this type. ''' Public Overridable Property DefaultText As String ''' '''The send method for this type. 1 = Email, 2 = SMS. ''' Public Overridable Property SendMethodId As Integer End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace