Create Api Client Models for upcoming RadioList UIHint.

This commit is contained in:
Matt 2025-06-05 00:36:18 +01:00
parent 59bfcf0ba5
commit 1bfdfcaf71
4 changed files with 23 additions and 2 deletions

View file

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>
@ -17,4 +17,4 @@
<PackageReference Include="Refit.HttpClientFactory" />
</ItemGroup>
</Project>
</Project>

View file

@ -0,0 +1,3 @@
namespace Elsa.Api.Client.Shared.UIHints.RadioList;
public record RadioList(IEnumerable<RadioListItem> Items, bool IsFlagsEnum = false);

View file

@ -0,0 +1,9 @@
namespace Elsa.Api.Client.Shared.UIHints.RadioList;
public class RadioListItem
{
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public string Text { get; set; }
public string Value { get; set; }
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
}

View file

@ -0,0 +1,9 @@
namespace Elsa.Api.Client.Shared.UIHints.RadioList;
public class RadioListProps
{
/// <summary>
/// The select list.
/// </summary>
public RadioList? CheckList { get; set; }
}