init
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportUid)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportResponseDto(OsztalyCsoportResponse model) => model == null ? null : new OsztalyCsoportResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev
|
||||
};
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportSimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportUid)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportSimplifiedResponseDto(OsztalyCsoportSimplifiedResponse model) => model == null ? null : new OsztalyCsoportSimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw
|
||||
};
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Domain.VN.Utility;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportTagsagResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportBesorolas)]
|
||||
public DateTime BesorolasDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyCsoportKisorolas)]
|
||||
public DateTime? KisorolasDatuma { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportTagsagResponseDto(OsztalyCsoportTagsagResponse model) => new OsztalyCsoportTagsagResponseDto
|
||||
{
|
||||
BesorolasDatuma = model.BesorolasDatuma.ToIso8601Utc(),
|
||||
KisorolasDatuma = model.KisorolasDatuma?.ToIso8601Utc()
|
||||
};
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyfonokOsztalyCsoportListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasiNevelesiFeladatKategoriaja)]
|
||||
public AdatszotarResponseDto<OktNevelesiKategoriaEnum> OktatasNevelesiKategoria { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListTanuloOsztalyCsoport", null);
|
||||
|
||||
public static implicit operator OsztalyfonokOsztalyCsoportListResponseDto(OsztalyCsoportListResponse model) => new OsztalyfonokOsztalyCsoportListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
OktatasNevelesiKategoria = AdatszotarResponseDto<OktNevelesiKategoriaEnum>.Create(model.OktatasNevelesiKategoria)
|
||||
};
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
using Kreta.Enums;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class TanuloOsztalyCsoportListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.Osztalyfonok)]
|
||||
public OsztalyfonokSimplifiedResponseDto OsztalyFonok { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyfonokHelyettes)]
|
||||
public OsztalyfonokHelyettesSimplifiedResponseDto OsztalyFonokHelyettes { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasiNevelesiFeladat)]
|
||||
public AdatszotarResponseDto<OktatasiNevelesiFeladatEnum> OktatasNevelesiFeladat { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasiNevelesiFeladatKategoriaja)]
|
||||
public AdatszotarResponseDto<OktNevelesiKategoriaEnum> OktatasNevelesiKategoria { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasNevelesiFeladatSortIndex)]
|
||||
public int OktatasNevelesiFeladatSortIndex { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportAktiv)]
|
||||
public bool IsAktiv { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EnumErtek), JsonConverter(typeof(StringEnumConverter))]
|
||||
public OsztalyCsoportTipus Tipus { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportTagsagok)]
|
||||
public HashSet<OsztalyCsoportTagsagResponseDto> Tagsagok { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListTanuloOsztalyCsoport", null);
|
||||
|
||||
public static implicit operator TanuloOsztalyCsoportListResponseDto(OsztalyCsoportListResponse model) => new TanuloOsztalyCsoportListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
OsztalyFonok = model.Osztalyfonok,
|
||||
OsztalyFonokHelyettes = model.OsztalyfonokHelyettes,
|
||||
OktatasNevelesiFeladat = AdatszotarResponseDto<OktatasiNevelesiFeladatEnum>.Create(model.OktatasNevelesiFeladat),
|
||||
OktatasNevelesiKategoria = AdatszotarResponseDto<OktNevelesiKategoriaEnum>.Create(model.OktatasNevelesiKategoria),
|
||||
OktatasNevelesiFeladatSortIndex = model.OktatasiNevelesiFeladatSortIndex,
|
||||
IsAktiv = model.IsAktiv,
|
||||
Tipus = model.OsztalyCsoportTipus,
|
||||
Tagsagok = ModelToDto(model.Tagsagok)
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user