' Options: 'Date: 2024-11-21 11:38:02 '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: UpdateResourceTimeException.* '''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.Enums Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class CreateResourceTimeExceptionBase ''' '''If this equals true it will it add the time exception with the option you have selected in CollidingBookingOption. Default is to cancel all colliding bookings. ''' Public Overridable Property Force As Boolean ''' '''When Force=true and colliding bookings exsists, this message is the message that are sent to the users when canceling their bookings. ''' Public Overridable Property CancelMessage As String ''' '''When Force=true and colliding bookings exsists, send cancelmessage as SMS Confirmation ''' Public Overridable Property SendSmsConfirmation As Nullable(Of Boolean) ''' '''When Force=true and colliding bookings exsists, send cancelmessage as Email Confirmation ''' Public Overridable Property SendEmailConfirmation As Nullable(Of Boolean) 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 ExceptionCalendarExportStatus Public Overridable Property CalendarId As String Public Overridable Property ExceptionId As Integer Public Overridable Property Synced As Nullable(Of Boolean) End Class Public Partial Class ResourceTimeExceptionQueryResponse Public Sub New() ResourceIds = New Integer(){} Resources = New List(Of TimeExceptionReosurceDetails) DaysOfWeek = New List(Of DayOfWeekDto) End Sub ''' '''Time exception id ''' Public Overridable Property Id As Integer ''' '''Time company id ''' Public Overridable Property CompanyId As Guid ''' '''If it's locked for editing for the logged in administrator ''' Public Overridable Property Locked As Boolean ''' '''Resources that owns this exception ''' Public Overridable Property ResourceIds As Integer() ''' '''Resources that owns this exception ''' Public Overridable Property Resources As List(Of TimeExceptionReosurceDetails) ''' '''Indicates wheter or not the time exception is recurring ''' Public Overridable Property IsRecurring As Boolean ''' '''Time exception starting timestamp ''' Public Overridable Property From As Date ''' '''Time exception ending timestamp ''' Public Overridable Property To As Date ''' '''If recurring then this value indicates the time of day when the time exception begins ''' Public Overridable Property FromTime As TimeSpan ''' '''If recurring then this value indicates the time of day when the time exception ends ''' Public Overridable Property ToTime As TimeSpan ''' '''The reason of the time exception, example: Vacation, doctors appointment, ... ''' Public Overridable Property ReasonText As String ''' '''The reason of the time exception that could be public to customers, example: Vacation, Closed, Sick leave, ... ''' Public Overridable Property ReasonTextPublic As String ''' '''What hexadecimal color code the exception should have in the scheduler ''' Public Overridable Property Color As String ''' '''If the time exception should block the time in the scheduler so it's not avaialable to book ''' Public Overridable Property BlockTime As Boolean ''' '''If the ReasonText should only be visible to conncted resources. If false, all resources will be able to see it ''' Public Overridable Property Private As Boolean ''' '''The status for export to calendars like Gcal ''' Public Overridable Property CalendarExportStatus As ExceptionCalendarExportStatus ''' '''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 datetime the exception was created ''' Public Overridable Property Created As Date Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class TimeExceptionReosurceDetails ''' '''Ids of the resources that owns this exception ''' Public Overridable Property Id As Integer ''' '''Name of the resource ''' Public Overridable Property Name As String ''' '''Description of the resource ''' Public Overridable Property Description As String ''' '''Color of the resource ''' Public Overridable Property Color As String ''' '''Image of the resource ''' Public Overridable Property ImageUrl As Uri Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class UpdateResourceTimeException Inherits CreateResourceTimeExceptionBase Implements IReturn(Of ResourceTimeExceptionQueryResponse) Implements ICompany Public Sub New() ResourceIds = New Integer(){} DaysOfWeek = New Integer(){} 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) ''' '''Tome exceptions id ''' Public Overridable Property Id As Integer ''' '''Time exception starting datestamp, only the date of day part is used of this value ''' Public Overridable Property From As Nullable(Of Date) ''' '''Time exception ending datestamp, only the date of day part is used of this value ''' Public Overridable Property To As Nullable(Of Date) ''' '''Resource id of the resource that owns this exception ''' Public Overridable Property ResourceIds As Integer() ''' '''This value indicates the time of day when the time exception begins. Example: 10:00. If Recurring this will be the startime for each recurring day. ''' Public Overridable Property FromTime As Nullable(Of TimeSpan) ''' '''This value indicates the time of day when the time exception ends. Example: 12:00. If Recurring this will be the endtime for each recurring day. ''' Public Overridable Property ToTime As Nullable(Of TimeSpan) ''' '''A comma separated list of which days this day exception belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. ''' Public Overridable Property DaysOfWeek As Integer() ''' '''The reason of the time exception, example: Vacation, doctors appointment, ... ''' Public Overridable Property ReasonText As String ''' '''The reason of the time exception that could be public to customers, example: Vacation, Closed, Sick leave, ... ''' Public Overridable Property ReasonTextPublic As String ''' '''What hexadecimal color code the exception should have in the scheduler ''' Public Overridable Property Color As String ''' '''If the time exception should block the time in the scheduler so it's not avaialable to book ''' Public Overridable Property BlockTime As Nullable(Of Boolean) ''' '''If the ReasonText should only be visible to conncted resources. If false, all resources will be able to see it ''' Public Overridable Property Private As Nullable(Of Boolean) ''' '''By default sets to 1, which is to add time exception without canceling colliding bookings ''' Public Overridable Property CollidingBookingOptions As CollidingBookingOptions End Class End Namespace Namespace BokaMera.API.ServiceModel.Enums Public Enum CollidingBookingOptions AddWithoutCancelingCollidingBookings = 1 AddAndCancelCollidingBookings = 2 End Enum End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace