40 lines
2.0 KiB
C#
40 lines
2.0 KiB
C#
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()
|
|
};
|
|
}
|
|
}
|