init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue