/* Options: Date: 2026-04-02 04:04:21 SwiftVersion: 6.0 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.imglobal.com/RestApi //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetScheduledTasks.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //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(){} }