This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,32 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny.Rendszermodul;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
using Kreta.Ellenorzo.Enums.VN;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny.Rendszermodul
{
public class RendszermodulListResponseDto : IDtoListDocumentation
{
[Required, Description(DescriptionLookUp.IsAktivRendszermodul)]
public bool IsAktiv { get; set; }
[Description(DescriptionLookUp.EnumErtek), JsonConverter(typeof(StringEnumConverter))]
public RendszermodulTipus Tipus { get; set; }
[Description(DescriptionLookUp.RendszermodulURL)]
public string Url { get; set; }
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListRendszermodul", null);
public static implicit operator RendszermodulListResponseDto(RendszermodulListResponse model) => new RendszermodulListResponseDto
{
IsAktiv = model.IsAktiv,
Tipus = model.Tipus,
Url = model.Url
};
}
}