-
Notifications
You must be signed in to change notification settings - Fork 0
/
AsTask.cs
55 lines (49 loc) · 1.67 KB
/
AsTask.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using AS_Automator.Task;
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace AS_Automator
{
[XmlInclude(typeof(TaskDelay))]
[XmlInclude(typeof(TaskRunProgram))]
[XmlInclude(typeof(TaskCopyFile))]
[XmlInclude(typeof(TaskWriteTitle))]
[XmlInclude(typeof(TaskTurnOffWifi))]
[XmlInclude(typeof(TaskKillApp))]
[XmlInclude(typeof(TaskRunMsi))]
[XmlInclude(typeof(TaskDeleteService))]
[XmlInclude(typeof(TaskBlockFirewall))]
[XmlInclude(typeof(TaskExtractZip))]
[XmlInclude(typeof(TaskDeleteListFile))]
[XmlInclude(typeof(TaskAddHost))]
[XmlInclude(typeof(TaskRegeditImport))]
[XmlInclude(typeof(TaskBash))]
[XmlInclude(typeof(TaskInstallMacApp))]
[XmlInclude(typeof(TaskMacUnzip))]
[XmlInclude(typeof(TaskMacOpenApp))]
[XmlInclude(typeof(TaskMacInstallPkg))]
[XmlInclude(typeof(TaskShowText))]
[XmlInclude(typeof(TaskRunMsp))]
[XmlInclude(typeof(TaskCopyListFile))]
[XmlInclude(typeof(TaskEcho))]
[XmlInclude(typeof(TaskDeleteListFolder))]
[XmlInclude(typeof(TaskCopyListFolder))]
[XmlInclude(typeof(TaskExludeFromWinDefender))]
[XmlInclude(typeof(TaskMacWifi))]
[XmlInclude(typeof(TaskMacGatekeeper))]
[XmlInclude(typeof(TaskBlockFirewallList))]
[Serializable]
public abstract class AsTask
{
public abstract void Run(List<Variable> variableList);
public abstract AsTask GetSample();
public Boolean Disable { get; set; } = false;
public String Title { get; set; } = "";
protected void ShowInfo(string msg)
{
Console.ResetColor();
Console.WriteLine(msg);
}
}
}