' Options: 'Date: 2024-11-21 13:59:48 '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: MessageLogQuery.* '''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 MessageLog Inherits BaseModel Implements IMessageLog Public Overridable Property BookingId As Nullable(Of Integer) Public Overridable Property PublicMessage As Boolean Public Overridable Property MessageType As Integer Public Overridable Property iCalAttachment As Boolean Public Overridable Property SenderName As String Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) Public Overridable Property CorrelationId As Nullable(Of Guid) Public Overridable Property CompanyId As Guid Public Overridable Property Id As Integer Public Overridable Property Receiver As String Public Overridable Property Sender As String Public Overridable Property MessageTitle As String Public Overridable Property MessageBody As String Public Overridable Property CreatedBy As String Public Overridable Property Created As Date Public Overridable Property Sent As Boolean Public Overridable Property ToSendDate As Date Public Overridable Property SentDate As Nullable(Of Date) Public Overridable Property SendMethodId As Integer Public Overridable Property MessageCount As Nullable(Of Integer) Public Overridable Property SMSStatus As Nullable(Of Integer) Public Overridable Property MessageRetries As Integer Public Overridable Property StorageUrl As String Public Overridable Property Language As String End Class End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class MessageLogQuery Inherits QueryDb(Of MessageLog, MessageLogQueryResponse) Implements IReturn(Of QueryResponse(Of MessageLogQueryResponse)) 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) ''' '''If you want to search on sent messages ''' Public Overridable Property Sent As Nullable(Of Boolean) ''' '''Message Id ''' Public Overridable Property Id As Nullable(Of Integer) ''' '''If you want to search on a messages for a specific booking ''' Public Overridable Property BookingId As Nullable(Of Integer) ''' '''If you want to search on a messages for a specific receiver ''' Public Overridable Property Receiver As String ''' '''If you want to search on a messages created a specific date ''' Public Overridable Property Created As Nullable(Of Date) ''' '''If you want to search on a messages sent a specific date ''' Public Overridable Property SentDate As Nullable(Of Date) Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class MessageLogQueryResponse ''' '''The message log id ''' Public Overridable Property Id As Integer ''' '''The booking id for the message (if connected to a booking). ''' Public Overridable Property BookingId As Nullable(Of Integer) ''' '''The message receiver. Either a email or a mobile phone number. ''' Public Overridable Property Receiver As String ''' '''Message Title. ''' Public Overridable Property MessageTitle As String ''' '''Message Storage Url. ''' Public Overridable Property StorageUrl As String ''' '''Message Body. ''' Public Overridable Property MessageBody As String ''' '''When message was created. ''' Public Overridable Property Created As Date ''' '''When the message will be sent. ''' Public Overridable Property ToSendDate As Date ''' '''When the message was sent. ''' Public Overridable Property SentDate As Nullable(Of Date) ''' '''If Message is sent ''' Public Overridable Property Sent As Boolean ''' '''Number of retries to send the message ''' Public Overridable Property MessageRetries As Integer ''' '''Send Method. 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 Public Interface IMessageLog Property CompanyId As Guid Property Id As Integer Property Receiver As String Property Sender As String Property MessageTitle As String Property MessageBody As String Property CreatedBy As String Property Created As Date Property Sent As Boolean Property ToSendDate As Date Property SentDate As Nullable(Of Date) Property SendMethodId As Integer Property MessageCount As Nullable(Of Integer) Property SMSStatus As Nullable(Of Integer) Property MessageRetries As Integer Property StorageUrl As String End Interface End Namespace End Namespace