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,39 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny.TestreszabasBeallitasok;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
using Kreta.Ellenorzo.Dto.VN.Utility;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny.TestreszabasBeallitasok
{
public class TestreszabasBeallitasokResponseDto : IDtoDocumentation
{
[Required, Description(DescriptionLookUp.IsDiakRogzithetHaziFeladatot)]
public bool IsDiakRogzithetHaziFeladatot { get; set; }
[Required, Description(DescriptionLookUp.IsTanorakTemajaMegtekinthetoEllenozoben)]
public bool IsTanorakTemajaMegtekinthetoEllenorzoben { get; set; }
[Required, Description(DescriptionLookUp.IsOsztalyAtlagMegjeleniteseEllenorzoben)]
public bool IsOsztalyAtlagMegjeleniteseEllenorzoben { get; set; }
[Required, Description(DescriptionLookUp.ErtekelesekMegjelenitesenekKesleltetesenekMerteke)]
public int ErtekelesekMegjelenitesenekKesleltetesenekMerteke { get; set; }
[Required, Description(DescriptionLookUp.KovetkezoTelepitesDatuma)]
public DateTime KovetkezoTelepitesDatuma { get; set; }
public DocumentationExampleDto Example => new DocumentationExampleDto("GetTestreszabasBeallitasok", null);
public static implicit operator TestreszabasBeallitasokResponseDto(TestreszabasBeallitasokResponse model) => new TestreszabasBeallitasokResponseDto
{
IsDiakRogzithetHaziFeladatot = model.IsDiakRogzithetHaziFeladatot,
IsTanorakTemajaMegtekinthetoEllenorzoben = model.IsTanorakTemajaMegtekinthetoEllenorzoben,
IsOsztalyAtlagMegjeleniteseEllenorzoben = model.IsOsztalyAtlagMegjeleniteseEllenorzoben,
ErtekelesekMegjelenitesenekKesleltetesenekMerteke = model.ErtekelesekMegjelenitesenekKesleltetesenekMerteke,
KovetkezoTelepitesDatuma = model.KovetkezoTelepitesDatuma.ToIso8601Utc()
};
}
}