47 lines
1.6 KiB
C#
47 lines
1.6 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.Igazolas;
|
|
using Kreta.Naplo.Domain.V3.Utility;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
using Kreta.Naplo.Dto.V3.Interfaces;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.Igazolas
|
|
{
|
|
public class IgazolasResponseDto : IDtoListDocumentation
|
|
{
|
|
[Required, Description(DescriptionLookUp.IgazolasId)]
|
|
public int Id { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.IgazolasKezdete)]
|
|
public DateTime Kezdete { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.IgazolasVege)]
|
|
public DateTime Vege { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.IgazolasTipusa)]
|
|
public int Tipusa { get; set; }
|
|
|
|
[Description(DescriptionLookUp.IgazolasMegjegyzes)]
|
|
public string Megjegyzes { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.IgazolasRogzito)]
|
|
public string Rogzito { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.IgazolasTorolheto)]
|
|
public bool Torolheto { get; set; }
|
|
|
|
public DocumentationExampleDto ListExample => new DocumentationExampleDto("GetIgazolasok", 218789);
|
|
|
|
public static implicit operator IgazolasResponseDto(IgazolasResponse model) => new IgazolasResponseDto
|
|
{
|
|
Id = model.Id,
|
|
Kezdete = model.Kezdete.ToIso8601Utc(),
|
|
Vege = model.Vege.ToIso8601Utc(),
|
|
Tipusa = model.Tipusa,
|
|
Megjegyzes = model.Megjegyzes,
|
|
Rogzito = model.Rogzito,
|
|
Torolheto = model.Torolheto
|
|
};
|
|
}
|
|
}
|