forked from Azure/azure-sdk-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathActionDescription.cs
More file actions
41 lines (35 loc) · 955 Bytes
/
ActionDescription.cs
File metadata and controls
41 lines (35 loc) · 955 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Azure.Sdk.Tools.TestProxy.Models
{
public enum MetaDataType
{
Transform,
Sanitizer,
Matcher
}
public class CtorDescription
{
public string Description;
public List<Tuple<string, string>> Arguments;
}
public class ActionDescription
{
public MetaDataType ActionType;
public string Name;
public string Description;
public CtorDescription ConstructorDetails;
public string SanitizerId;
public ActionDescription() { }
public ActionDescription(string nameSpace)
{
var nsValue = nameSpace.Split(".").Last();
if (Enum.TryParse(nsValue.Substring(0, nsValue.Length - 1), out MetaDataType actionType))
{
ActionType = actionType;
};
}
}
}