' Options: 'Date: 2025-10-25 23:02:51 'Version: 8.80 '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: False '''ExportValueTypes: False 'IncludeTypes: ReferenceQuery.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.IO Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Globalization Imports ServiceStack.Data Imports System.Net Imports System.Net.Http.Headers 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 ExternalReference Inherits BaseModel Implements IBaseModelCreated Implements IBaseModelUpdated Public Overridable Property CompanyId As Guid Public Overridable Property Id As Guid Public Overridable Property OwnerId As Guid Public Overridable Property ReferenceType As String Public Overridable Property ReferenceTypeId As Integer Public Overridable Property ExternalData As String Public Overridable Property InternalData As String Public Overridable Property CreatedBy As String Public Overridable Property UpdatedDate As Date Implements IBaseModelUpdated.UpdatedDate Public Overridable Property CreatedDate As Date Implements IBaseModelCreated.CreatedDate Public Overridable Property ModifiedDate As DateTimeOffset? End Class Public Interface IBaseModelCreated Property CreatedDate As Date End Interface Public Interface IBaseModelUpdated Property UpdatedDate As Date End Interface End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class ReferenceQuery Inherits QueryDb(Of ExternalReference, ReferenceQueryResponse) Implements IReturn(Of QueryResponse(Of ReferenceQueryResponse)) 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 Guid? Implements ICompany.CompanyId ''' '''Id of the reference ''' Public Overridable Property Id As Guid? ''' '''Internal Id of the reference. Example could be the Booking Id ''' Public Overridable Property OwnerId As Guid? ''' '''The type of reference, you can name this parameter what you like. Example could be system_bookingid where the system is the external system ''' Public Overridable Property ReferenceType As String ''' '''The external data. Could be a Id or a JSON object or anything ''' Public Overridable Property ExternalData As String End Class Public Partial Class ReferenceQueryResponse Public Overridable Property CompanyId As Guid Public Overridable Property Id As Guid Public Overridable Property OwnerId As Guid Public Overridable Property ReferenceType As String Public Overridable Property ReferenceTypeId As Integer Public Overridable Property ExternalData As String Public Overridable Property Updated As Date Public Overridable Property Created As Date Public Overridable Property CreatedBy As String Public Overridable Property UpdatedBy As String Public Overridable Property ResponseStatus As ResponseStatus End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Guid? End Interface End Namespace End Namespace