init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Telefon;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Telefon
|
||||
{
|
||||
public class TelefonResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakATelefonszama)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TelefonTipus)]
|
||||
public AdatszotarResponseDto<TelefonTipusEnum> Tipus { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasAlapertelmezett)]
|
||||
public bool IsAlapertelmezett { get; set; }
|
||||
|
||||
public static implicit operator TelefonResponseDto(TelefonResponse model) => model == null ? null : new TelefonResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Telefonszam = model.Telefonszam,
|
||||
Tipus = AdatszotarResponseDto<TelefonTipusEnum>.Create(model.Tipus),
|
||||
IsAlapertelmezett = model.IsAlapertelmezett
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user