| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | using JetBrains.Annotations; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Api.Client.Resources.ActivityDescriptors.Models; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// A base type for <see cref="InputDescriptor"/> and <see cref="OutputDescriptor"/>. |
| | | 8 | | /// </summary> |
| | | 9 | | [PublicAPI] |
| | | 10 | | public abstract class PropertyDescriptor |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// The name. |
| | | 14 | | /// </summary> |
| | 0 | 15 | | public string Name { get; set; } = default!; |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The .NET type. |
| | | 19 | | /// </summary> |
| | | 20 | | [JsonPropertyName("typeName")] |
| | 0 | 21 | | public string TypeName { get; set; } = default!; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// The user friendly name of the input. Used by UI tools. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public string? DisplayName { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// The user friendly description of the input. Used by UI tools. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public string? Description { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The order in which this input should be displayed by UI tools. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public float Order { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// True if this input should be displayed by UI tools, false otherwise. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public bool? IsBrowsable { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// True if this input property is synthetic, which means it does not exist physically on the activity's .NET type. |
| | | 45 | | /// </summary> |
| | 0 | 46 | | public bool IsSynthetic { get; set; } |
| | | 47 | | } |