/* Options: Date: 2024-12-03 17:55:26 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: RecurringScheduleIntervalsQuery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //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 } }