| | | 1 | | namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Base class for workflow input and output definitions. |
| | | 5 | | /// </summary> |
| | | 6 | | public abstract class ArgumentDefinition |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// The type of the input value. |
| | | 10 | | /// </summary> |
| | 0 | 11 | | public string Type { get; set; } = default!; |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Indicates whether the input is an array. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public bool IsArray { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// The technical name of the input. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public string Name { get; set; } = default!; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// A user friendly name of the input. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public string DisplayName { get; set; } = default!; |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// A description of the input. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public string Description { get; set; } = default!; |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The category to which this input belongs. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public string Category { get; set; } = default!; |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// The type name of the variable, including the array indicator. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public string GetTypeDisplayName() => IsArray ? $"{Type}[]" : Type; |
| | | 42 | | } |