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,24 @@

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Naplo.Domain.V3.Ora;
using Kreta.Naplo.Dto.V3.Documentation;
namespace Kreta.Naplo.Dto.V3.Ora
{
public class FeljegyzesResponseDto
{
[Required, Description(DescriptionLookUp.FeljegyzesId)]
public int Id { get; set; }
[Required, Description(DescriptionLookUp.FeljegyzesTipus)]
public int Tipus { get; set; }
public static implicit operator FeljegyzesResponseDto(FeljegyzesResponse model) => new FeljegyzesResponseDto
{
Id = model.Id,
Tipus = model.Tipus
};
}
}

View file

@ -0,0 +1,17 @@
using System.ComponentModel;
using Kreta.Naplo.Domain.V3.Ora;
using Kreta.Naplo.Dto.V3.Documentation;
namespace Kreta.Naplo.Dto.V3.Ora
{
public class OraFeljegyzesRequestDto
{
[Description(DescriptionLookUp.TanitasiOraId)]
public int TanoraId { get; set; }
public static implicit operator OraFeljegyzesRequest(OraFeljegyzesRequestDto dto) => new OraFeljegyzesRequest
{
TanoraId = dto.TanoraId
};
}
}

View file

@ -0,0 +1,29 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Naplo.Domain.V3.Ora;
using Kreta.Naplo.Dto.V3.Documentation;
using Kreta.Naplo.Dto.V3.Interfaces;
using static Kreta.Naplo.Dto.V3.Converter.ResponseModelConverter;
namespace Kreta.Naplo.Dto.V3.Ora
{
public class OraFeljegyzesResponseDto : IDtoDocumentation
{
[Required, Description(DescriptionLookUp.TanuloId)]
public int TanuloId { get; set; }
[Required, Description(DescriptionLookUp.FeljegyzesLista)]
public List<FeljegyzesResponseDto> FeljegyzesLista { get; set; }
public static implicit operator OraFeljegyzesResponseDto(OraFeljegyzesResponse model) => new OraFeljegyzesResponseDto
{
TanuloId = model.TanuloId,
FeljegyzesLista = ModelToDto(model.FeljegyzesLista)
};
public DocumentationExampleDto Example => new DocumentationExampleDto("GetOraFeljegyzesek", new OraFeljegyzesRequestDto()
{
TanoraId = 13279493
});
}
}