' Options: 'Date: 2024-11-23 10:37:59 '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: AvaiableTimesGroupedQuery.* '''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 BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class AvaiableTimesGroupedQuery Implements IReturn(Of AvailableTimesGroupedDatesResponse) Implements IInterval Public Sub New() Resources = New List(Of AvailableTimesResourceTypeResource) End Sub ''' '''Company to show services for ''' Public Overridable Property CompanyId As Nullable(Of Guid) ''' '''Service id ''' Public Overridable Property ServiceId As Integer ''' '''From what datetime to show available times ''' Public Overridable Property From As Date ''' '''To what datetime to show available times ''' Public Overridable Property To As Date ''' '''Here you can select one of the resource in each resourcetype connected to the service, if none is selected it will show available times for all ''' Public Overridable Property Resources As List(Of AvailableTimesResourceTypeResource) ''' '''Here you select number of resources to book (in each resourcetype). Default is 1. ''' Public Overridable Property NumberOfResources As Integer ''' '''If you want to include the connected resourcetypes and resources ''' Public Overridable Property ShowPerResource As Boolean ''' '''Both start and time time should be inside test interval. Default is false which means only start time needs to be inside. ''' Public Overridable Property InsideSearchInterval As Boolean ''' '''The duration you want to book. Needs to withing the service Min and Max. If not set it will use the service duration ''' Public Overridable Property Duration As Nullable(Of Integer) Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class AvailableTimesGroupedDates Public Sub New() Times = New List(Of AvailableTimesSum) End Sub Public Overridable Property Group As Date Public Overridable Property Times As List(Of AvailableTimesSum) End Class Public Partial Class AvailableTimesGroupedDatesResponse Public Sub New() Items = New List(Of AvailableTimesGroupedDates) End Sub Public Overridable Property CompanyId As Guid Public Overridable Property ServiceId As Integer Public Overridable Property TimesFreeTextSingle As String Public Overridable Property TimesFreeTextMultiple As String Public Overridable Property Items As List(Of AvailableTimesGroupedDates) End Class Public Partial Class AvailableTimesResourceTypeResource ''' '''The resourcetype id ''' Public Overridable Property ResourceTypeId As Integer ''' '''The resource id ''' Public Overridable Property ResourceId As Integer End Class Public Partial Class AvailableTimesSum Implements IAvailableTime Public Overridable Property From As Date Public Overridable Property To As Date Public Overridable Property Free As Integer Public Overridable Property FreeSpots As Integer Public Overridable Property ExceptionTexts As IEnumerable(Of ExceptionText) End Class Public Partial Class ExceptionText Public Overridable Property Reason As String Public Overridable Property ReasonPublic As String End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface IAvailableTime Implements IInterval Property Free As Integer End Interface Public Interface IInterval Property From As Date Property To As Date End Interface End Namespace End Namespace