init
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class BejelentettSzamonkeresekResponseDto : IDtoDocumentation, IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.SzamonkeresId)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Tema)]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesMod)]
|
||||
public int ErtekelesMod { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OraSzam)]
|
||||
public int? OraSzam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyId)]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyNev)]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarUid)]
|
||||
public Guid TanarUid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarNev)]
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("GetBejelentettSzamonkeresek",
|
||||
new BejelentettSzamonkeresekRequestDto
|
||||
{
|
||||
OsztalyCsoportId = 804093,
|
||||
Datum = DateTime.Parse("2022-06-02T22:00:00Z")
|
||||
});
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetBejelentettSzamonkeres", 4707);
|
||||
|
||||
public static implicit operator BejelentettSzamonkeresekResponseDto(BejelentettSzamonkeresekResponse model) => new BejelentettSzamonkeresekResponseDto
|
||||
{
|
||||
Id = model.Id,
|
||||
Tema = model.Tema,
|
||||
ErtekelesMod = model.ErtekelesMod,
|
||||
OraSzam = model.OraSzam,
|
||||
TantargyId = model.TantargyId,
|
||||
TantargyNev = model.TantargyNev,
|
||||
TanarUid = model.TanarUid,
|
||||
TanarNev = model.TanarNev
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user