' Options: 'Date: 2024-11-21 11:33:09 '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: UpdateArticle.* '''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 ArticleServiceRelation Inherits BaseModel Public Overridable Property CompanyId As Guid Public Overridable Property Id As Integer Public Overridable Property ServiceId As Integer Public Overridable Property ArticleId As Integer End Class Public Partial Class BaseModel End Class End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class ArticleResponse Public Sub New() Services = New List(Of ArticleServiceRelation) ServiceIds = New List(Of Integer) End Sub Public Overridable Property CompanyId As Guid Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property ArticleTypeId As Integer Public Overridable Property Description As String Public Overridable Property ImageUrl As String Public Overridable Property Active As Boolean Public Overridable Property Amount As Integer Public Overridable Property Price As Double Public Overridable Property CurrencyId As String Public Overridable Property UpdatedDate As Date Public Overridable Property CreatedDate As Date Public Overridable Property Services As List(Of ArticleServiceRelation) Public Overridable Property ServiceIds As List(Of Integer) Public Overridable Property PriceSign As String End Class Public Partial Class UpdateArticle Implements IReturn(Of ArticleResponse) Implements ICompany Public Sub New() ServiceIds = New Integer(){} End Sub ''' ''' ''' Public Overridable Property Id As Integer ''' ''' ''' Public Overridable Property CompanyId As Nullable(Of Guid) ''' ''' ''' Public Overridable Property Name As String ''' ''' ''' Public Overridable Property ArticleTypeId As Nullable(Of Integer) ''' ''' ''' Public Overridable Property Description As String ''' ''' ''' Public Overridable Property ImageUrl As Uri ''' ''' ''' Public Overridable Property Active As Nullable(Of Boolean) ''' ''' ''' Public Overridable Property Amount As Integer ''' '''. ''' Public Overridable Property Price As Double ''' '''The payment currency id ''' Public Overridable Property CurrencyId As String ''' '''Query for specific services. ''' Public Overridable Property ServiceIds 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