/* Options: Date: 2025-09-14 21:19:19 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: RecurringScheduleIntervalsQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/schedules/recurring/intervals", "GET") // @ValidateRequest(Validator="IsAuthenticated") public class RecurringScheduleIntervalsQuery : IReturn, ICompany, IInterval, Codable { public typealias Return = ScheduleIntervalsQueryResponse /** * Company to show services for */ // @ApiMember(Description="Company to show services for", ParameterType="query") public var companyId:String? /** * From what datetime to show times */ // @ApiMember(DataType="dateTime", Description="From what datetime to show times", IsRequired=true, ParameterType="query") public var from:Date? /** * To what datetime to show times */ // @ApiMember(DataType="dateTime", Description="To what datetime to show times", IsRequired=true, ParameterType="query") public var to:Date? /** * Here you can select one of the resource, if none is selected it will show available times for all */ // @ApiMember(Description="Here you can select one of the resource, if none is selected it will show available times for all", ParameterType="query") public var resourceIds:[Int]? public var responseStatus:ResponseStatus? required public init(){} } public class ScheduleIntervalsQueryResponse : Codable { public var from:Date? public var to:Date? @TimeSpan public var duration:TimeInterval? required public init(){} } public protocol ICompany { var companyId:String? { get set } } public protocol IInterval { var from:Date? { get set } var to:Date? { get set } }