elsa-core/src/modules/Elsa.JavaScript/Models/ParameterDefinition.cs

39 lines
865 B
C#
Raw Normal View History

namespace Elsa.JavaScript.Models;
/// <summary>
/// A method parameter definition.
/// </summary>
public class ParameterDefinition
{
/// <summary>
/// Constructor.
/// </summary>
public ParameterDefinition()
{
}
/// <summary>
/// Constructor.
/// </summary>
public ParameterDefinition(string name, string? type, bool isOptional = false)
{
Name = name;
Type = type;
IsOptional = isOptional;
}
/// <summary>
/// The name of the parameter.
/// </summary>
public string Name { get; set; } = default!;
/// <summary>
/// The type name of the parameter.
/// </summary>
public string? Type { get; set; }
/// <summary>
/// A value indicating whether the parameter is optional or not.
/// </summary>
public bool IsOptional { get; set; }
}