init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Tanar;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Tanar
|
||||
{
|
||||
public class BeallitasokRequestDto : IExamplesProvider
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ElozoOranHianyzoAjanlasa)]
|
||||
public bool ElozoOranHianyzoAjanlasa { get; set; }
|
||||
|
||||
public static implicit operator BeallitasokRequest(BeallitasokRequestDto dto) => new BeallitasokRequest
|
||||
{
|
||||
ElozoOranHianyzoAjanlasa = dto.ElozoOranHianyzoAjanlasa
|
||||
};
|
||||
|
||||
public object GetExamples() => new BeallitasokRequestDto
|
||||
{
|
||||
ElozoOranHianyzoAjanlasa = true
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Tanar;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Tanar
|
||||
{
|
||||
public class BeallitasokResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ElozoOranHianyzoAjanlasa)]
|
||||
public bool ElozoOranHianyzoAjanlasa { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.NapiSzamonkeresLimit)]
|
||||
public int NapiSzamonkeresLimit { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.LimitaltSzamonkeresekTipusai)]
|
||||
public List<int> LimitaltSzamonkeresekTipusai { get; set; }
|
||||
|
||||
public static implicit operator BeallitasokResponseDto(BeallitasokResponse model) => new BeallitasokResponseDto
|
||||
{
|
||||
ElozoOranHianyzoAjanlasa = model.ElozoOranHianyzoAjanlasa,
|
||||
NapiSzamonkeresLimit = model.NapiSzamonkeresLimit,
|
||||
LimitaltSzamonkeresekTipusai = model.LimitaltSzamonkeresekTipusai
|
||||
};
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetBeallitasok", null);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Tanar;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Tanar
|
||||
{
|
||||
public class ProfilResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.IdpEgyediAzonosito)]
|
||||
public Guid Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Nev)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IntezmenyNev)]
|
||||
public string IntezmenyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyId)]
|
||||
public int FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyNev)]
|
||||
public string FeladatEllatasiHelyNev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.PublikusEmailCim)]
|
||||
public string PublikusEmailCim { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.PublikusTelefonszam)]
|
||||
public string PublikusTelefonszam { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.MunkahelyiEmailCim)]
|
||||
public string MunkahelyiEmailCim { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.MunkahelyiTelefonszam)]
|
||||
public string MunkahelyiTelefonszam { get; set; }
|
||||
|
||||
public static implicit operator ProfilResponseDto(ProfilResponse model) => new ProfilResponseDto
|
||||
{
|
||||
Uid = model.Uid,
|
||||
Nev = model.Nev,
|
||||
IntezmenyNev = model.IntezmenyNev,
|
||||
FeladatEllatasiHelyId = model.FeladatEllatasiHelyId,
|
||||
FeladatEllatasiHelyNev = model.FeladatEllatasiHelyNev,
|
||||
PublikusEmailCim = model.PublikusEmailCim,
|
||||
PublikusTelefonszam = model.PublikusTelefonszam,
|
||||
MunkahelyiEmailCim = model.MunkahelyiEmailCim,
|
||||
MunkahelyiTelefonszam = model.MunkahelyiTelefonszam
|
||||
};
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetProfil", null);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Tanar;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Tanar
|
||||
{
|
||||
public class TantargyFelosztasResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportId)]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNev)]
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyId)]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyNev)]
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyId)]
|
||||
public int FeladatellatasiHelyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyNev)]
|
||||
public string FeladatellatasiHely { get; set; }
|
||||
|
||||
public static implicit operator TantargyFelosztasResponseDto(TantargyFelosztasResponse model) => new TantargyFelosztasResponseDto
|
||||
{
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
OsztalyCsoportNev = model.OsztalyCsoportNev,
|
||||
TantargyId = model.TantargyId,
|
||||
TantargyNev = model.TantargyNev,
|
||||
FeladatellatasiHelyId = model.FeladatellatasiHelyId,
|
||||
FeladatellatasiHely = model.FeladatellatasiHely
|
||||
};
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetTantargyFelosztasok", null);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue