30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
|
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
|
|
|
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo
|
|
{
|
|
public class OsztalyfonokGetResponseDto
|
|
{
|
|
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
|
public string Uid { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
|
public string Nev { get; set; }
|
|
|
|
[Description(DescriptionLookUp.FelhasznalonakAPublikusEmailCime + "; ha null, akkor nincs megadva")]
|
|
public string EmailCim { get; set; }
|
|
|
|
[Description(DescriptionLookUp.FelhasznalonakAPublikusTelefonszama + "; ha null, akkor nincs megadva")]
|
|
public string Telefonszam { get; set; }
|
|
|
|
public static implicit operator OsztalyfonokGetResponseDto(OsztalyfonokGetResponse model) => model == null ? null : new OsztalyfonokGetResponseDto
|
|
{
|
|
Uid = model.Uid.UidRaw,
|
|
Nev = model.Nev,
|
|
EmailCim = model.EmailCim,
|
|
Telefonszam = model.Telefonszam
|
|
};
|
|
}
|
|
}
|