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