/* Options: Date: 2025-08-05 02:33:55 SwiftVersion: 5.0 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.asg.com.au/RestApi //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetScheduledTasks.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/sitefinity/scheduling/scheduled-tasks", "GET") public class GetScheduledTasks : IReturn, Codable { public typealias Return = GetScheduledTasksResponse public var skip:Int public var take:Int public var searchTerm:String public var orderBy:OrderByType public var filterBy:FilterByType required public init(){} } public class GetScheduledTasksResponse : Codable { public var items:[ScheduledTaskViewModel] = [] public var totalCount:Int required public init(){} } public enum OrderByType : String, Codable { case ScheduledFor case LastExecutionDate case Status case NameAsc case NameDesc } public enum FilterByType : String, Codable { case All case Pending case Started case Stopped case Failed case Recurring } public class ScheduledTaskViewModel : Codable { public var taskId:String public var name:String public var title:String public var status:String public var errorMessage:String public var recurringInterval:String public var scheduledForDate:Date public var lastExecutionTime:Date? public var hash:String required public init(){} }