| | | 1 | | using JetBrains.Annotations; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Api.Client.Resources.ActivityDescriptors.Models; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// A descriptor of an activity's input property. |
| | | 7 | | /// </summary> |
| | | 8 | | [PublicAPI] |
| | | 9 | | public class InputDescriptor : PropertyDescriptor |
| | | 10 | | { |
| | | 11 | | /// <inheritdoc /> |
| | 0 | 12 | | public InputDescriptor() |
| | | 13 | | { |
| | 0 | 14 | | } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// True if the property is wrapped with an <c>"Input{T}"</c> type, false otherwise. |
| | | 18 | | /// </summary> |
| | 0 | 19 | | public bool IsWrapped { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// A string value that hints at what UI control might be used to render in a UI tool. |
| | | 23 | | /// </summary> |
| | 0 | 24 | | public string UIHint { get; set; } = default!; |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The category to which this input belongs. Can be used by UI to e.g. render different inputs in different tabs. |
| | | 28 | | /// </summary> |
| | 0 | 29 | | public string? Category { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// The default value. |
| | | 33 | | /// </summary> |
| | 0 | 34 | | public object? DefaultValue { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// The default syntax. |
| | | 38 | | /// </summary> |
| | 0 | 39 | | public string? DefaultSyntax { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// True if the input is readonly, false otherwise. |
| | | 43 | | /// </summary> |
| | 0 | 44 | | public bool? IsReadOnly { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// The storage driver type to use for persistence. |
| | | 48 | | /// If no driver is specified, the referenced memory block will remain in memory for as long as the expression execu |
| | | 49 | | /// </summary> |
| | 0 | 50 | | public string? StorageDriverType { get; set; } |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// A dictionary of UI specifications to be used by the UI. |
| | | 54 | | /// </summary> |
| | 0 | 55 | | public IDictionary<string, object>? UISpecifications { get; set; } |
| | | 56 | | } |