init
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraIdopontJelentkezesCreateRequestDto
|
||||
{
|
||||
public FogadooraIdopontJelentkezesCreateRequestDto(string uidRaw)
|
||||
{
|
||||
FogadooraIdopontUid = uidRaw;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A jelentkezni kívánt fogadóóra-időpont azonosítója
|
||||
/// </summary>
|
||||
public string FogadooraIdopontUid { get; set; }
|
||||
|
||||
public static implicit operator FogadooraJelentkezesCreateRequest(FogadooraIdopontJelentkezesCreateRequestDto dto)
|
||||
=> new FogadooraJelentkezesCreateRequest(dto.FogadooraIdopontUid);
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraIdopontResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraIdopontKezdete)]
|
||||
public DateTime KezdoIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraIdopontVege)]
|
||||
public DateTime VegIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraJelentkeztem)]
|
||||
public bool IsJelentkeztem { get; set; }
|
||||
|
||||
public static implicit operator FogadooraIdopontResponseDto(FogadooraIdopontResponse model) => new FogadooraIdopontResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
KezdoIdopont = model.KezdoIdopont.ToIso8601Utc(),
|
||||
VegIdopont = model.VegIdopont.ToIso8601Utc(),
|
||||
IsJelentkeztem = model.IsJelentkeztem
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraListRequestDto
|
||||
{
|
||||
public FogadooraListRequestDto()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Végdátum (ShortDateTime, UTC ISO 8601) is még a lekérdezés része (zárt intervallumon működik a szűrés)
|
||||
/// </summary>
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Kezdő dátum (DateTime, UTC ISO 8601) is már a lekérdezés része (zárt intervallumon működik a szűrés)
|
||||
/// </summary>
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
public static implicit operator FogadooraListRequest(FogadooraListRequestDto dto) => dto == null ? new FogadooraListRequestDto() : new FogadooraListRequest()
|
||||
{
|
||||
DatumTol = dto.DatumTol,
|
||||
DatumIg = dto.DatumIg
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.FogadooraTanar)]
|
||||
public TanarSimplifiedResponseDto Tanar { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarFogadoorai)]
|
||||
public List<FogadooraResponseDto> Fogadoorak { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListFogadoorak",
|
||||
new FogadooraListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 4, 15, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 4, 17, 0, 0, 0)
|
||||
},
|
||||
MockUserName.Gondviselo);
|
||||
|
||||
public static implicit operator FogadooraListResponseDto(FogadooraListResponse model) => new FogadooraListResponseDto
|
||||
{
|
||||
Tanar = model.Tanar,
|
||||
Fogadoorak = ModelToDto(model.Fogadoorak)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Terem;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraTerem)]
|
||||
public TeremSimplifiedResponseDto Terem { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraJelentkezes)]
|
||||
public bool IsJelentkezesFeatureEnabled { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraKezdetenekIdopontja)]
|
||||
public DateTime KezdoIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraVegenekIdopontja)]
|
||||
public DateTime VegIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.JelentkezesHatarido)]
|
||||
public DateTime JelentkezesHatarido { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraIdopontok)]
|
||||
public List<FogadooraIdopontResponseDto> Idopontok { get; set; }
|
||||
|
||||
public static implicit operator FogadooraResponseDto(FogadooraResponse model) => new FogadooraResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Terem = model.Terem,
|
||||
IsJelentkezesFeatureEnabled = model.IsJelentkezesFeatureEnabled,
|
||||
KezdoIdopont = model.KezdoIdopont.ToIso8601Utc(),
|
||||
VegIdopont = model.VegIdopont.ToIso8601Utc(),
|
||||
JelentkezesHatarido = model.JelentkezesHatarido.HasValue ? model.JelentkezesHatarido.Value.ToIso8601Utc() : model.KezdoIdopont.ToIso8601Utc(),
|
||||
Idopontok = ModelToDto(model.Idopontok)
|
||||
};
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora.Idopont;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora.Idopont
|
||||
{
|
||||
public class FogadooraIdopontJelentkezesDeleteRequestDto
|
||||
{
|
||||
public FogadooraIdopontJelentkezesDeleteRequestDto()
|
||||
{
|
||||
}
|
||||
|
||||
public FogadooraIdopontJelentkezesDeleteRequestDto(string uid)
|
||||
{
|
||||
Uid = uid;
|
||||
}
|
||||
|
||||
[Required]
|
||||
public string Uid { get; }
|
||||
|
||||
public static implicit operator FogadooraIdopontJelentkezesDeleteRequest(FogadooraIdopontJelentkezesDeleteRequestDto dto) => new FogadooraIdopontJelentkezesDeleteRequest(dto.Uid);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user