54 lines
2 KiB
C#
54 lines
2 KiB
C#
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);
|
|
}
|
|
}
|