' Options: 'Date: 2024-11-21 11:30:26 '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: CreateRecurringSchedule.* '''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 AddRecurringScheduleDate ''' '''The date for the schedule opening (only date part is used here ''' Public Overridable Property [Date] As Date ''' '''The time for the schedule opening hours (starttime) ''' Public Overridable Property StartTime As TimeSpan ''' '''The time for the schedule opening hours (endtime) ''' Public Overridable Property EndTime As TimeSpan End Class Public Partial Class AddScheduleResource ''' '''The resource id ''' Public Overridable Property Id As Integer End Class Public Partial Class AddScheduleService ''' '''The service id ''' Public Overridable Property Id As Integer End Class Public Partial Class CreateRecurringSchedule Implements IReturn(Of RecurringScheduleQueryResponse) Implements ICompany Public Sub New() DaysOfWeek = New Integer(){} ScheduleDates = New List(Of AddRecurringScheduleDate) Exceptions = New List(Of ScheduleException) Resources = New List(Of AddScheduleResource) Services = New List(Of AddScheduleService) End Sub ''' '''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) ''' '''The schedule name ''' Public Overridable Property Name As String ''' '''The schedule description ''' Public Overridable Property Description As String ''' '''If schedule is active or not ''' Public Overridable Property Active As Boolean ''' '''Time interval for available times. Here you set the interval at which times should appear. For example, if you select the range 15minutes, and your service has an duration of 1 hour and opening hours are 9AM to 6PM you will see the following suggested times: 09AM-10PM 09:15AM-10:15PM, 09:30AM-10:30PM , ..... 04:45PM-05:45, 05:00PM-06:00PM ''' Public Overridable Property TimeInterval As Integer ''' '''Allow bookings end time exceeds the opening hours Here you can choose whether it should be possible to make a reservation exceeding the opening hours. This should be ticked when a service duration is longer than 24 hours (possible to book over midnight). ''' Public Overridable Property EnableBookingUntilClosingTime As Boolean ''' '''The timestamp to which the schedule is valid from ''' Public Overridable Property ValidFrom As Date ''' '''The timestamp to which the schedule is valid to ''' Public Overridable Property ValidTo As Date ''' '''The time for the schedule opening hours (starttime) ''' Public Overridable Property StartTime As TimeSpan ''' '''The time for the schedule opening hours (endtime) ''' Public Overridable Property EndTime As TimeSpan ''' '''The number of days the schedule is valid from todays date ''' Public Overridable Property NumberOfScheduleDays As Integer ''' '''If recurring, an array indicating which days of the week the schedule recures on where 1 = Monday .. 7 = Sunday. When recurring then the time portion of the Fields From and To indicates the time of day the recurrence occurs ''' Public Overridable Property DaysOfWeek As Integer() ''' '''If not recuring, an array indicating which dates that are open for the schedule. ''' Public Overridable Property ScheduleDates As List(Of AddRecurringScheduleDate) ''' '''Schedule exceptions. For example closed on lunch time between 12AM and 1PM. These times will be removed from the recurring schedule. ''' Public Overridable Property Exceptions As List(Of ScheduleException) ''' '''If the schedule is only connected to some resources, add them here. If empty, it will be used by all resources. ''' Public Overridable Property Resources As List(Of AddScheduleResource) ''' '''Set what services the schedule should be connected to. ''' Public Overridable Property Services As List(Of AddScheduleService) End Class Public Partial Class DayOfWeekDto Public Overridable Property DayOfWeekId As Integer Public Overridable Property DotNetDayOfWeekId As Integer Public Overridable Property DayOfWeek As String End Class Public Partial Class RecurringScheduleDateResponse Public Overridable Property Id As Integer Public Overridable Property [Date] As Date Public Overridable Property StartTime As TimeSpan Public Overridable Property EndTime As TimeSpan Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class RecurringScheduleExceptionResponse ''' '''Start time of the schedule exception. ''' Public Overridable Property StartTime As TimeSpan ''' '''End time of the schedule exception. ''' Public Overridable Property EndTime As TimeSpan End Class Public Partial Class RecurringScheduleQueryResponse Public Sub New() DaysOfWeek = New List(Of DayOfWeekDto) Resources = New List(Of ScheduleResources) Services = New List(Of ScheduleServices) Exceptions = New List(Of RecurringScheduleExceptionResponse) ScheduleDates = New List(Of RecurringScheduleDateResponse) End Sub ''' '''The schedule id ''' Public Overridable Property Id As Integer ''' '''Name of the schedule ''' Public Overridable Property Name As String ''' '''Description of the schedule ''' Public Overridable Property Description As String ''' '''If the schedule is active or not ''' Public Overridable Property Active As Boolean ''' '''Time interval for available times Here you set the interval at which times should appear. For example, if you select the range 15minutes, and your service has an duration of 1 hour and opening hours are 9AM to 6PM you will see the following suggested times: 09AM-10PM 09:15AM-10:15PM, 09:30AM-10:30PM , ..... 04:45PM-05:45, 05:00PM-06:00PM ''' Public Overridable Property TimeInterval As Integer ''' '''The timestamp to which the schedule is valid from ''' Public Overridable Property ValidFrom As Date ''' '''The timestamp to which the schedule is valid to ''' Public Overridable Property ValidTo As Date ''' '''The time for the schedule opening hours (starttime) ''' Public Overridable Property StartTime As TimeSpan ''' '''The time for the schedule opening hours (endtime) ''' Public Overridable Property EndTime As TimeSpan ''' '''The number of days the schedule is valid from todays date ''' Public Overridable Property NumberOfScheduleDays As Integer ''' '''If the schedule is only connected to some specific resources. Note: You must have IncludeResources property to see this. ''' Public Overridable Property IsResourceSpecific As Nullable(Of Boolean) ''' '''The timestamp when the schedule was updated ''' Public Overridable Property UpdatedDate As Date ''' '''The timestamp when the schedule was created ''' Public Overridable Property CreatedDate As Date ''' '''Allow bookings end time exceeds the opening hours Here you can choose whether it should be possible to make a reservation exceeding the opening hours. This should be ticked when a service duration is longer than 24 hours (possible to book over midnight). ''' Public Overridable Property EnableBookingUntilClosingTime As Boolean ''' '''If recurring, an array indicating which days of the week the exception recures on where 1 = Monday .. 7 = Sunday. When recurring then the time portion of the Fields From and To indicates the time of day the recurrence occurs ''' Public Overridable Property DaysOfWeek As List(Of DayOfWeekDto) ''' '''The resources that is connected to the schedule ''' Public Overridable Property Resources As List(Of ScheduleResources) ''' '''The services that is connected to the schedule ''' Public Overridable Property Services As List(Of ScheduleServices) ''' '''The exceptions that is added to the schedule ''' Public Overridable Property Exceptions As List(Of RecurringScheduleExceptionResponse) ''' '''Schedule dates, used when the schedule is not a rolling schedule using days of week ''' Public Overridable Property ScheduleDates As List(Of RecurringScheduleDateResponse) Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class ScheduleException Public Overridable Property StartTime As TimeSpan Public Overridable Property EndTime As TimeSpan End Class Public Partial Class ScheduleResources Public Overridable Property Id As Integer ''' '''Name of the resource ''' Public Overridable Property Name As String ''' '''The image url of the resource ''' Public Overridable Property ImageUrl As Uri End Class Public Partial Class ScheduleServices Public Overridable Property Id As Integer ''' '''Name of the service ''' Public Overridable Property Name As String ''' '''The image url of the service ''' Public Overridable Property ImageUrl As Uri End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace