Create Api Client Models for upcoming RadioList UIHint.
This commit is contained in:
parent
59bfcf0ba5
commit
1bfdfcaf71
|
|
@ -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>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
namespace Elsa.Api.Client.Shared.UIHints.RadioList;
|
||||
|
||||
public record RadioList(IEnumerable<RadioListItem> Items, bool IsFlagsEnum = false);
|
||||
|
|
@ -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.
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
namespace Elsa.Api.Client.Shared.UIHints.RadioList;
|
||||
|
||||
public class RadioListProps
|
||||
{
|
||||
/// <summary>
|
||||
/// The select list.
|
||||
/// </summary>
|
||||
public RadioList? CheckList { get; set; }
|
||||
}
|
||||
Loading…
Reference in a new issue