init
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using Kreta.Ellenorzo.Domain.VN.HaziFeladat;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.HaziFeladat.Csatolmany;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.HaziFeladat
|
||||
{
|
||||
public class HaziFeladatDetailResponseDto : HaziFeladatListResponseDto
|
||||
{
|
||||
[Description(DescriptionLookUp.HaziFeladathozRogzitettCsatolmanyok)]
|
||||
public IEnumerable<CsatolmanySimplifiedResponseDto> Csatolmanyok { get; set; }
|
||||
|
||||
public static implicit operator HaziFeladatDetailResponseDto(HaziFeladatDetailResponse model) => new HaziFeladatDetailResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Tantargy = model.Tantargy,
|
||||
TantargyNeve = model.Tantargy.Nev,
|
||||
RogzitoTanarNeve = model.RogzitoTanar.Nev,
|
||||
Szoveg = model.Szoveg,
|
||||
FeladasDatuma = model.FeladasDatuma.ToIso8601Utc(),
|
||||
HataridoDatuma = model.HataridoDatuma?.ToIso8601Utc(),
|
||||
RogzitesIdopontja = model.RogzitesIdopontja.ToIso8601Utc(),
|
||||
IsTanarRogzitette = model.IsTanarRogzitette,
|
||||
IsTanuloHaziFeladatEnabled = model.IsTanuloHaziFeladatEnabled,
|
||||
IsMegoldva = model.IsMegoldva,
|
||||
IsBeadhato = model.IsBeadhato,
|
||||
OsztalyCsoport = model.OsztalyCsoport,
|
||||
IsCsatolasEngedelyezes = model.IsCsatolasEngedelyezes,
|
||||
Csatolmanyok = model.Csatolmanyok == null ? null : ModelToDto(model.Csatolmanyok)
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user