kreta/Kreta.WebApi/Naplo/Kreta.Naplo.Dto/V3/Tanulo/TanuloMentessegResponseDto.cs
2024-03-13 00:33:46 +01:00

30 lines
1.2 KiB
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Naplo.Domain.V3.Ertekeles;
using Kreta.Naplo.Dto.V3.Documentation;
namespace Kreta.Naplo.Dto.V3.Tanulo
{
public class TanuloMentessegResponseDto
{
[Required, Description(DescriptionLookUp.ErtekelesAloliFelmentes)]
public bool ErtekelesAloliFelmentes { get; set; }
[Required, Description(DescriptionLookUp.TanoraLatogatasaAloliFelmentes)]
public bool TanoraLatogatasaAloliFelmentes { get; set; }
[Required, Description(DescriptionLookUp.SzovegesenErtekelheto)]
public bool SzovegesenErtekelheto { get; set; }
[Required, Description(DescriptionLookUp.FelmentesOka)]
public string FelmentesOka { get; set; }
public static implicit operator TanuloMentessegResponseDto(TanuloMentessegResponse model) => new TanuloMentessegResponseDto
{
ErtekelesAloliFelmentes = model.ErtekelesAloliFelmentes,
TanoraLatogatasaAloliFelmentes = model.TanoraLatogatasaAloliFelmentes,
SzovegesenErtekelheto = model.SzovegesenErtekelheto,
FelmentesOka = model.FelmentesOka
};
}
}