init
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user