' Options:
'Date: 2024-11-21 11:39:54
'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: NextFreeTimeQuery.*
'''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.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
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 AvailableTimesResponse
Public Sub New()
Times = New List(Of AvailableTimesSum)
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 Times As List(Of AvailableTimesSum)
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
Public Partial Class NextFreeTimeQuery
Implements IReturn(Of AvailableTimesResponse)
Implements IInterval
Public Sub New()
Resources = New List(Of AvailableTimesResourceTypeResource)
End Sub
'''
'''Company to show available time for
'''
Public Overridable Property CompanyId As Nullable(Of Guid)
'''
'''Service id
'''
Public Overridable Property ServiceId As Integer
'''
'''From what datetime to search available times
'''
Public Overridable Property From As Date
'''
'''To what datetime to show available times. Optional, if no datetime is set it will search one year
'''
Public Overridable Property To As Date
'''
'''Here you can select one of the resource in each resource type 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 resource type). Default is 1.
'''
Public Overridable Property NumberOfResources As Integer
'''
'''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)
'''
'''If you want to include the connected resource types and resources
'''
Public Overridable Property ShowPerResource As Boolean
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