mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 18:20:47 +01:00
17 lines
461 B
C#
17 lines
461 B
C#
using Microsoft.OpenApi.Any;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace Needlework.Net.Desktop.ViewModels
|
|
{
|
|
public class PropertyEnumViewModel
|
|
{
|
|
public string Type { get; } = "Enum";
|
|
public string Values { get; }
|
|
|
|
public PropertyEnumViewModel(IList<IOpenApiAny> enumValue)
|
|
{
|
|
Values = $"[{string.Join(", ", enumValue.Select(x => ((OpenApiString)x).Value).ToList())}]";
|
|
}
|
|
}
|
|
} |