/* Options: Date: 2025-08-05 02:37:54 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.asg.com.au/RestApi //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetScheduledTasks.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum OrderByType { ScheduledFor, LastExecutionDate, Status, NameAsc, NameDesc, } enum FilterByType { All, Pending, Started, Stopped, Failed, Recurring, } class ScheduledTaskViewModel implements IConvertible { String? TaskId; String? Name; String? Title; String? Status; String? ErrorMessage; String? RecurringInterval; DateTime? ScheduledForDate; DateTime? LastExecutionTime; String? Hash; ScheduledTaskViewModel({this.TaskId,this.Name,this.Title,this.Status,this.ErrorMessage,this.RecurringInterval,this.ScheduledForDate,this.LastExecutionTime,this.Hash}); ScheduledTaskViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TaskId = json['TaskId']; Name = json['Name']; Title = json['Title']; Status = json['Status']; ErrorMessage = json['ErrorMessage']; RecurringInterval = json['RecurringInterval']; ScheduledForDate = JsonConverters.fromJson(json['ScheduledForDate'],'DateTime',context!); LastExecutionTime = JsonConverters.fromJson(json['LastExecutionTime'],'DateTime',context!); Hash = json['Hash']; return this; } Map toJson() => { 'TaskId': TaskId, 'Name': Name, 'Title': Title, 'Status': Status, 'ErrorMessage': ErrorMessage, 'RecurringInterval': RecurringInterval, 'ScheduledForDate': JsonConverters.toJson(ScheduledForDate,'DateTime',context!), 'LastExecutionTime': JsonConverters.toJson(LastExecutionTime,'DateTime',context!), 'Hash': Hash }; getTypeName() => "ScheduledTaskViewModel"; TypeContext? context = _ctx; } class GetScheduledTasksResponse implements IConvertible { List? Items; int? TotalCount; GetScheduledTasksResponse({this.Items,this.TotalCount}); GetScheduledTasksResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Items = JsonConverters.fromJson(json['Items'],'List',context!); TotalCount = json['TotalCount']; return this; } Map toJson() => { 'Items': JsonConverters.toJson(Items,'List',context!), 'TotalCount': TotalCount }; getTypeName() => "GetScheduledTasksResponse"; TypeContext? context = _ctx; } // @Route("/sitefinity/scheduling/scheduled-tasks", "GET") class GetScheduledTasks implements IReturn, IConvertible, IGet { int? Skip; int? Take; String? SearchTerm; OrderByType? OrderBy; FilterByType? FilterBy; GetScheduledTasks({this.Skip,this.Take,this.SearchTerm,this.OrderBy,this.FilterBy}); GetScheduledTasks.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Skip = json['Skip']; Take = json['Take']; SearchTerm = json['SearchTerm']; OrderBy = JsonConverters.fromJson(json['OrderBy'],'OrderByType',context!); FilterBy = JsonConverters.fromJson(json['FilterBy'],'FilterByType',context!); return this; } Map toJson() => { 'Skip': Skip, 'Take': Take, 'SearchTerm': SearchTerm, 'OrderBy': JsonConverters.toJson(OrderBy,'OrderByType',context!), 'FilterBy': JsonConverters.toJson(FilterBy,'FilterByType',context!) }; createResponse() => GetScheduledTasksResponse(); getResponseTypeName() => "GetScheduledTasksResponse"; getTypeName() => "GetScheduledTasks"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'OrderByType': TypeInfo(TypeOf.Enum, enumValues:OrderByType.values), 'FilterByType': TypeInfo(TypeOf.Enum, enumValues:FilterByType.values), 'ScheduledTaskViewModel': TypeInfo(TypeOf.Class, create:() => ScheduledTaskViewModel()), 'GetScheduledTasksResponse': TypeInfo(TypeOf.Class, create:() => GetScheduledTasksResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetScheduledTasks': TypeInfo(TypeOf.Class, create:() => GetScheduledTasks()), });