This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,54 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
{
public class GondviseloAdatokResponseDto : IDtoDocumentation
{
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
public string Elotag { get; set; }
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
public string Vezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
public string SzuletesiVezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
public string Utonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
public string SzuletesiUtonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
public string AnyjaVezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
public string AnyjaUtonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
public string SzuletesiHely { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
public DateTime? SzuletesiDatum { get; set; }
public DocumentationExampleDto Example => new DocumentationExampleDto("GetGondviseloAdatlap", null);
public static implicit operator GondviseloAdatokResponseDto(GondviseloAdatokResponse model) => new GondviseloAdatokResponseDto
{
Elotag = model.Elotag,
Vezeteknev = model.Vezeteknev,
Utonev = model.Utonev,
SzuletesiVezeteknev = model.SzuletesiVezeteknev,
SzuletesiUtonev = model.SzuletesiUtonev,
AnyjaVezeteknev = model.AnyjaVezeteknev,
AnyjaUtonev = model.AnyjaUtonev,
SzuletesiHely = model.SzuletesiHely,
SzuletesiDatum = model.SzuletesiDatum
};
}
}

View file

@ -0,0 +1,65 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Swashbuckle.Examples;
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
{
public class GondviseloBaseAdatlapRequestDto : IExamplesProvider
{
[Description(DescriptionLookUp.FelhasznaloElotag)]
public string Elotag { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloVezeteknev)]
public string Vezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloUtonev)]
public string Utonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiVezeteknev)]
public string SzuletesiVezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiUtonev)]
public string SzuletesiUtonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
public string SzuletesiHely { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
public DateTime? SzuletesiDatum { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaVezeteknev)]
public string AnyjaVezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaUtonev)]
public string AnyjaUtonev { get; set; }
public static implicit operator GondviseloBaseAdatlapRequest(GondviseloBaseAdatlapRequestDto dto) => new GondviseloBaseAdatlapRequest
{
Elotag = dto.Elotag,
Vezeteknev = dto.Vezeteknev,
Utonev = dto.Utonev,
SzuletesiVezeteknev = dto.SzuletesiVezeteknev,
SzuletesiUtonev = dto.SzuletesiUtonev,
SzuletesiHely = dto.SzuletesiHely,
SzuletesiDatum = dto.SzuletesiDatum,
AnyjaVezeteknev = dto.AnyjaVezeteknev,
AnyjaUtonev = dto.AnyjaUtonev
};
public object GetExamples() => new GondviseloBaseAdatlapRequestDto
{
Elotag = "Dr.",
Vezeteknev = "Teszt",
Utonev = "Gondviselő",
SzuletesiVezeteknev = "GondviselőSzületésiVezetéknév",
SzuletesiUtonev = "GondviselőSzületésiUtónév",
SzuletesiHely = "Budapest",
SzuletesiDatum = new DateTime(1975, 04, 15),
AnyjaVezeteknev = "GondviselőAnyjaVezetéknév",
AnyjaUtonev = "GondviselőAnyjaUtónév"
};
}
}

View file

@ -0,0 +1,42 @@
using System;
using System.ComponentModel;
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Swashbuckle.Examples;
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
{
public class RegisztracioRequestDto : GondviseloBaseAdatlapRequestDto, IExamplesProvider
{
[Description(DescriptionLookUp.IsElfogadottAszf)]
public bool IsElfogadottAszf { get; set; }
public static implicit operator GondviseloEszkozIgenylesRequest(RegisztracioRequestDto dto) => new GondviseloEszkozIgenylesRequest
{
Elotag = dto.Elotag,
Vezeteknev = dto.Vezeteknev,
Utonev = dto.Utonev,
SzuletesiVezeteknev = dto.SzuletesiVezeteknev,
SzuletesiUtonev = dto.SzuletesiUtonev,
SzuletesiHely = dto.SzuletesiHely,
SzuletesiDatum = dto.SzuletesiDatum,
AnyjaVezeteknev = dto.AnyjaVezeteknev,
AnyjaUtonev = dto.AnyjaUtonev,
IsElfogadottAszf = dto.IsElfogadottAszf
};
public new object GetExamples() => new RegisztracioRequestDto
{
Elotag = "Dr.",
Vezeteknev = "Teszt",
Utonev = "Gondviselő",
SzuletesiVezeteknev = "GondviselőSzületésiVezetéknév",
SzuletesiUtonev = "GondviselőSzületésiUtónév",
SzuletesiHely = "Budapest",
SzuletesiDatum = new DateTime(1975, 04, 15),
AnyjaVezeteknev = "GondviselőAnyjaVezetéknév",
AnyjaUtonev = "GondviselőAnyjaUtónév",
IsElfogadottAszf = true
};
}
}