2021-02-20 19:47:56 +00:00
|
|
|
|
namespace Elsa.Client.Models
|
2020-11-12 22:45:18 +00:00
|
|
|
|
{
|
2021-02-16 08:55:13 +00:00
|
|
|
|
public class ActivityDefinitionProperty
|
2020-11-12 22:45:18 +00:00
|
|
|
|
{
|
2021-02-16 08:55:13 +00:00
|
|
|
|
public static ActivityDefinitionProperty Literal(string name, string expression) => new ActivityDefinitionProperty(name, expression, "Literal");
|
|
|
|
|
|
public static ActivityDefinitionProperty Liquid(string name, string expression) => new ActivityDefinitionProperty(name, expression, "Liquid");
|
|
|
|
|
|
public static ActivityDefinitionProperty JavaScript(string name, string expression) => new ActivityDefinitionProperty(name, expression, "JavaScript");
|
2020-11-12 22:45:18 +00:00
|
|
|
|
|
2021-02-16 08:55:13 +00:00
|
|
|
|
public ActivityDefinitionProperty()
|
2020-11-12 22:45:18 +00:00
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-16 08:55:13 +00:00
|
|
|
|
public ActivityDefinitionProperty(string name, string expression, string syntax)
|
2020-11-12 22:45:18 +00:00
|
|
|
|
{
|
2021-02-16 08:55:13 +00:00
|
|
|
|
Name = name;
|
2020-11-12 22:45:18 +00:00
|
|
|
|
Expression = expression;
|
|
|
|
|
|
Syntax = syntax;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-02-16 08:55:13 +00:00
|
|
|
|
public string Name { get; set; } = default!;
|
2020-11-12 22:45:18 +00:00
|
|
|
|
public string Syntax { get; set; } = default!;
|
|
|
|
|
|
public string Expression { get; set; } = default!;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|