' Options: 'Date: 2024-11-23 11:06:29 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://testapi.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: CreateDateSchedule.* '''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.Net Imports System.Net.Http.Headers Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class AddDateScheduleDate ''' '''The from date for the timeslot ''' Public Overridable Property From As Date ''' '''The to date for the timeslot ''' Public Overridable Property To As Date 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 CreateDateSchedule Implements IReturn(Of DateScheduleQueryResponse) Implements ICompany Public Sub New() ScheduleDates = New List(Of AddDateScheduleDate) 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 ''' '''The number of days the schedule is valid from todays date ''' Public Overridable Property NumberOfScheduleDays As Integer ''' '''The dates for the schedule. This is the actual timeslots. ''' Public Overridable Property ScheduleDates As List(Of AddDateScheduleDate) ''' '''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 DateScheduleDateResponse Public Overridable Property Id As Integer Public Overridable Property From As Date Public Overridable Property To As Date Public Overridable Property ResponseStatus As ResponseStatus End Class Public Partial Class DateScheduleQueryResponse Public Sub New() ScheduleDates = New List(Of DateScheduleDateResponse) Resources = New List(Of ScheduleResources) Services = New List(Of ScheduleServices) 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 ''' '''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) ''' '''Schedule dates ''' Public Overridable Property ScheduleDates As List(Of DateScheduleDateResponse) ''' '''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 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 Public Overridable Property ResponseStatus As ResponseStatus 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