init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Enum;
|
||||
using Kreta.Enums.ManualEnums.WebApi.Naplo;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Enum
|
||||
{
|
||||
public class EnumRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
public EngedelyezettEnumok EngedelyezettEnumName { get; set; }
|
||||
|
||||
public static implicit operator EnumRequestCo(EnumRequest model) => new EnumRequestCo
|
||||
{
|
||||
Hash = model.Hash,
|
||||
EngedelyezettEnum = (int)model.EngedelyezettEnumName
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.OpenBoard;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.OpenBoard
|
||||
{
|
||||
public class FeltolthetoFajlokSzamaRequest
|
||||
{
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public int? TanitasiOraId { get; set; }
|
||||
|
||||
public static implicit operator FeltolthetoFajlokSzamaRequestCo(FeltolthetoFajlokSzamaRequest model) => new FeltolthetoFajlokSzamaRequestCo
|
||||
{
|
||||
OrarendiOraId = model.OrarendiOraId,
|
||||
TanitasiOraId = model.TanitasiOraId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.OpenBoard;
|
||||
using Kreta.Core.Validation.Exceptions;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.OpenBoard
|
||||
{
|
||||
public class FeltolthetoFajlokSzamaResponse
|
||||
{
|
||||
public int FeltolthetoFajlokSzama { get; set; }
|
||||
public ValidationException Exception { get; set; }
|
||||
|
||||
public static implicit operator FeltolthetoFajlokSzamaResponse(FeltolthetoFajlokSzamaResponseCo co) => new FeltolthetoFajlokSzamaResponse
|
||||
{
|
||||
FeltolthetoFajlokSzama = co.FeltolthetoFajlokSzama,
|
||||
Exception = co.Exception
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.JavasoltJelenletTemplate
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.JavasoltJelenletTemplate;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
public class JavasoltJelenletTemplateGetRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
public TanoraAllapotaEnum OraAllapot { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletTemplateGetRequestCo(JavasoltJelenletTemplateGetRequest model) => new JavasoltJelenletTemplateGetRequestCo
|
||||
{
|
||||
Hash = model.Hash,
|
||||
OraAllapot = model.OraAllapot
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.JavasoltJelenletTemplate;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Enum;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.GetModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.JavasoltJelenletTemplate
|
||||
{
|
||||
public class JavasoltJelenletTemplateGetResponse
|
||||
{
|
||||
public int Prioritas { get; set; }
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public JavasoltJelenletTemplateType Tipus { get; set; }
|
||||
public List<JavasoltJelenletTemplateItemGetResponse> SzuroElemLista { get; set; }
|
||||
public static implicit operator JavasoltJelenletTemplateGetResponse(JavasoltJelenletTemplateGetResponseCo co) => new JavasoltJelenletTemplateGetResponse
|
||||
{
|
||||
Prioritas = co.Prioritas,
|
||||
Tipus = co.Tipus,
|
||||
SzuroElemLista = CoToModel(co.SzuroElemLista)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.JavasoltJelenletTemplate
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.JavasoltJelenletTemplate;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
public class JavasoltJelenletTemplateItemGetResponse
|
||||
{
|
||||
public bool IsDefault { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
public NaploEnum MulasztasTipusAdatszotar { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletTemplateItemGetResponse(JavasoltJelenletTemplateItemGetResponseCo co) => new JavasoltJelenletTemplateItemGetResponse
|
||||
{
|
||||
IsDefault = co.IsDefault,
|
||||
IsEnabled = co.IsEnabled,
|
||||
MulasztasTipusAdatszotar = NaploEnum.Create<MulasztasTipusEnum>(co.MulasztasTipusAdatszotar)
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.PostModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet
|
||||
{
|
||||
public class JavasoltJelenletGetRequest
|
||||
{
|
||||
public JavasoltJelenletKeyGetRequest[] Key { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletGetRequestCo(JavasoltJelenletGetRequest model) => new JavasoltJelenletGetRequestCo
|
||||
{
|
||||
Key = ModelToCo(model.Key)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.GetModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet
|
||||
{
|
||||
public class JavasoltJelenletGetResponse
|
||||
{
|
||||
public int OrarendiOraId { get; set; }
|
||||
public DateTime OraKezdetDatumaUtc { get; set; }
|
||||
public List<JavasoltJelenletTanuloGetResponse> TanuloLista { get; set; }
|
||||
public static implicit operator JavasoltJelenletGetResponse(JavasoltJelenletGetResponseCo co) => new JavasoltJelenletGetResponse
|
||||
{
|
||||
OrarendiOraId = co.OrarendiOraId,
|
||||
OraKezdetDatumaUtc = co.OraKezdetDatuma.ToUniversalTime(),
|
||||
TanuloLista = CoToModel(co.TanuloLista)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet
|
||||
{
|
||||
using System;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
|
||||
public class JavasoltJelenletKeyGetRequest
|
||||
{
|
||||
public DateTime OraKezdetDatumaUtc { get; set; }
|
||||
|
||||
public DateTime OraVegDatumaUtc { get; set; }
|
||||
|
||||
public int OrarendiOraId { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletKeyGetRequestCo(JavasoltJelenletKeyGetRequest model) => new JavasoltJelenletKeyGetRequestCo
|
||||
{
|
||||
OrarendiOraId = model.OrarendiOraId,
|
||||
OraKezdetDatuma = model.OraKezdetDatumaUtc,
|
||||
OraVegDatuma = model.OraVegDatumaUtc
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Enum;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
public class JavasoltJelenletSzuroGetResponse
|
||||
{
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public JavasoltJelenletTemplateType Tipus { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletSzuroGetResponse(JavasoltJelenletSzuroGetResponseCo co) => new JavasoltJelenletSzuroGetResponse
|
||||
{
|
||||
Megjegyzes = co.Megjegyzes,
|
||||
Tipus = co.Tipus
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.GetModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet
|
||||
{
|
||||
public class JavasoltJelenletTanuloGetResponse
|
||||
{
|
||||
public int TanuloId { get; set; }
|
||||
public List<JavasoltJelenletSzuroGetResponse> JavasoltJelenletTemplateTipusSzuroLista { get; set; }
|
||||
public static implicit operator JavasoltJelenletTanuloGetResponse(JavasoltJelenletTanuloGetResponseCo co) => new JavasoltJelenletTanuloGetResponse
|
||||
{
|
||||
TanuloId = co.TanuloId,
|
||||
JavasoltJelenletTemplateTipusSzuroLista = CoToModel(co.JavasoltJelenletTemplateTipusSzuroLista.Cast<JavasoltJelenletSzuroGetResponseCo>().ToList())
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.PostModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet
|
||||
{
|
||||
public class JavasoltJelenletGetRequest
|
||||
{
|
||||
public JavasoltJelenletKeyGetRequest[] Key { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletGetRequestCo(JavasoltJelenletGetRequest model) => new JavasoltJelenletGetRequestCo
|
||||
{
|
||||
Key = ModelToCo(model.Key)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.GetModelConverter;
|
||||
|
||||
public class JavasoltJelenletGetResponse
|
||||
{
|
||||
public int TanitasiOraId { get; set; }
|
||||
|
||||
public List<JavasoltJelenletTanuloGetResponse> TanuloLista { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletGetResponse(JavasoltJelenletGetResponseCo co) => new JavasoltJelenletGetResponse
|
||||
{
|
||||
TanitasiOraId = co.TanitasiOraId,
|
||||
TanuloLista = CoToModel(co.TanuloLista)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
|
||||
public class JavasoltJelenletKeyGetRequest
|
||||
{
|
||||
public int TanitasiOraId { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletKeyGetRequestCo(JavasoltJelenletKeyGetRequest model) => new JavasoltJelenletKeyGetRequestCo
|
||||
{
|
||||
TanitasiOraId = model.TanitasiOraId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Enum;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
public class JavasoltJelenletSzuroGetResponse
|
||||
{
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public JavasoltJelenletTemplateType Tipus { get; set; }
|
||||
|
||||
public static implicit operator JavasoltJelenletSzuroGetResponse(JavasoltJelenletSzuroGetResponseCo co) => new JavasoltJelenletSzuroGetResponse
|
||||
{
|
||||
Megjegyzes = co.Megjegyzes,
|
||||
Tipus = co.Tipus
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.GetModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet
|
||||
{
|
||||
public class JavasoltJelenletTanuloGetResponse
|
||||
{
|
||||
public int TanuloId { get; set; }
|
||||
public List<JavasoltJelenletSzuroGetResponse> JavasoltJelenletTemplateTipusSzuroLista { get; set; }
|
||||
public static implicit operator JavasoltJelenletTanuloGetResponse(JavasoltJelenletTanuloGetResponseCo co) => new JavasoltJelenletTanuloGetResponse
|
||||
{
|
||||
TanuloId = co.TanuloId,
|
||||
JavasoltJelenletTemplateTipusSzuroLista = CoToModel(co.JavasoltJelenletTemplateTipusSzuroLista.Cast<JavasoltJelenletSzuroGetResponseCo>().ToList())
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Orarend;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Orarend
|
||||
{
|
||||
public class OraGetRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime DatumUtc { get; set; }
|
||||
|
||||
public static implicit operator OraGetRequestCo(OraGetRequest model) => new OraGetRequestCo
|
||||
{
|
||||
Hash = model.Hash,
|
||||
Datum = model.DatumUtc
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Orarend;
|
||||
using Kreta.BusinessLogic.Utils;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Orarend
|
||||
{
|
||||
public class OraGetResponse
|
||||
{
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public int? TanitasiOraId { get; set; }
|
||||
public NaploEnum Allapot { get; set; }
|
||||
public DateTime KezdeteUtc { get; set; }
|
||||
public DateTime VegeUtc { get; set; }
|
||||
public int? EvesOraszam { get; set; }
|
||||
public int? Oraszam { get; set; }
|
||||
public bool IsElmaradt { get; set; }
|
||||
public string Tema { get; set; }
|
||||
public int TantargyId { get; set; }
|
||||
public string TantargyNev { get; set; }
|
||||
public string TantargyKategoria { get; set; }
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
public string TeremNev { get; set; }
|
||||
public string HazifeladatSzovege { get; set; }
|
||||
public int? HazifeladatId { get; set; }
|
||||
public DateTime? HazifeladatHataridoUtc { get; set; }
|
||||
public TanarSimplifiedGetResponse OraTulajdonosTanar { get; set; }
|
||||
public int? HelyettesitoId { get; set; }
|
||||
|
||||
public static implicit operator OraGetResponse(OraGetResponseCo co) => new OraGetResponse
|
||||
{
|
||||
OrarendiOraId = co.OrarendiOraId,
|
||||
TanitasiOraId = co.TanitasiOraId,
|
||||
Allapot = NaploEnum.Create(co.Allapot),
|
||||
KezdeteUtc = co.Kezdete.ToUniversalTime(),
|
||||
VegeUtc = co.Vege.ToUniversalTime(),
|
||||
EvesOraszam = co.EvesOraszam,
|
||||
Oraszam = co.Oraszam,
|
||||
IsElmaradt = co.IsElmaradt,
|
||||
Tema = co.Tema,
|
||||
TantargyId = co.TantargyId,
|
||||
TantargyNev = co.TantargyNev,
|
||||
TantargyKategoria = co.TantargyKategoria,
|
||||
HelyettesitoId = co.HelyettesitoId,
|
||||
OsztalyCsoportId = co.OsztalyCsoportId,
|
||||
OsztalyCsoportNev = co.OsztalyCsoportNev,
|
||||
TeremNev = co.TeremNev,
|
||||
HazifeladatSzovege = CommonUtils.RemoveHtmlTags(co.HazifeladatSzovege),
|
||||
HazifeladatId = co.HazifeladatId,
|
||||
OraTulajdonosTanar = co.OraTulajdonosTanar,
|
||||
HazifeladatHataridoUtc = co.HazifeladatHatarido?.ToUniversalTime(),
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Orarend
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Orarend;
|
||||
|
||||
public class TanarSimplifiedGetResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public static implicit operator TanarSimplifiedGetResponse(TanarSimplifiedGetResponseCo co) => co == null ? null : new TanarSimplifiedGetResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Nev = co.Nev
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanar;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanar
|
||||
{
|
||||
public class IskolaorRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
|
||||
public static implicit operator IskolaorRequestCo(IskolaorRequest model) => new IskolaorRequestCo
|
||||
{
|
||||
Hash = model.Hash
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanar;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanar
|
||||
{
|
||||
public class IskolaorResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string IdpEgyediAzonosito { get; set; }
|
||||
public string Nev { get; set; }
|
||||
public int FeladatEllatasiHelyId { get; set; }
|
||||
public string FeladatEllatasiHely { get; set; }
|
||||
public string EmailCim { get; set; }
|
||||
public string Telefonszam { get; set; }
|
||||
public string IntezmenyAzonosito { get; set; }
|
||||
|
||||
public static implicit operator IskolaorResponse(IskolaorResponseCo co) => new IskolaorResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
IdpEgyediAzonosito = co.IdpEgyediAzonosito,
|
||||
Nev = co.Nev,
|
||||
FeladatEllatasiHelyId = co.FeladatEllatasiHelyId,
|
||||
FeladatEllatasiHely = co.FeladatEllatasiHely,
|
||||
EmailCim = co.EmailCim,
|
||||
Telefonszam = co.Telefonszam,
|
||||
IntezmenyAzonosito = co.IntezmenyAzonosito
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanar;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanar
|
||||
{
|
||||
public class ProfilRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
|
||||
public static implicit operator ProfilRequestCo(ProfilRequest model) => new ProfilRequestCo
|
||||
{
|
||||
Hash = model.Hash
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanar;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanar
|
||||
{
|
||||
public class ProfilResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Nev { get; set; }
|
||||
public string Kep { get; set; }
|
||||
public int FeladatEllatasiHelyId { get; set; }
|
||||
public string FeladatEllatasiHely { get; set; }
|
||||
public string PublikusEmailCim { get; set; }
|
||||
public string MunkahelyiEmailCim { get; set; }
|
||||
public string PublikusTelefonszam { get; set; }
|
||||
|
||||
public static implicit operator ProfilResponse(ProfilResponseCo co) => new ProfilResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Nev = co.Nev,
|
||||
Kep = co.Kep,
|
||||
FeladatEllatasiHelyId = co.FeladatEllatasiHelyId,
|
||||
FeladatEllatasiHely = co.FeladatEllatasiHely,
|
||||
PublikusEmailCim = co.PublikusEmailCim,
|
||||
MunkahelyiEmailCim = co.MunkahelyiEmailCim,
|
||||
PublikusTelefonszam = co.PublikusTelefonszam
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanmenet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.PostModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanmenet
|
||||
{
|
||||
public class TanmenetGetRequest
|
||||
{
|
||||
public TanmenetKeyGetRequest[] Key { get; set; }
|
||||
|
||||
public static implicit operator TanmenetGetRequestCo(TanmenetGetRequest model) => new TanmenetGetRequestCo
|
||||
{
|
||||
Key = ModelToCo(model.Key)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanmenet;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.GetModelConverter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanmenet
|
||||
{
|
||||
public class TanmenetGetResponse
|
||||
{
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
public int TantargyId { get; set; }
|
||||
public int FeltoltoTanarId { get; set; }
|
||||
public List<TanmenetItemGetResponse> Items { get; set; }
|
||||
public static implicit operator TanmenetGetResponse(TanmenetGetResponseCo co) => new TanmenetGetResponse
|
||||
{
|
||||
OsztalyCsoportId = co.OsztalyCsoportId,
|
||||
TantargyId = co.TantargyId,
|
||||
FeltoltoTanarId = co.FeltoltoTanarId,
|
||||
Items = CoToModel(co.Items)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanmenet;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanmenet
|
||||
{
|
||||
public class TanmenetItemGetResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Megjegyzes { get; set; }
|
||||
public string Nev { get; set; }
|
||||
public string RovidNev { get; set; }
|
||||
public string Tema { get; set; }
|
||||
public int EvesOraszam { get; set; }
|
||||
|
||||
public static implicit operator TanmenetItemGetResponse(TanmenetItemGetResponseCo co) => new TanmenetItemGetResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Megjegyzes = co.Megjegyzes,
|
||||
Nev = co.Nev,
|
||||
RovidNev = co.RovidNev,
|
||||
Tema = co.Tema,
|
||||
EvesOraszam = co.EvesOraszam
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanmenet;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanmenet
|
||||
{
|
||||
public class TanmenetKeyGetRequest
|
||||
{
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
public int TantargyId { get; set; }
|
||||
public int FeltoltoTanarId { get; set; }
|
||||
|
||||
public static implicit operator TanmenetKeyGetRequestCo(TanmenetKeyGetRequest model) => new TanmenetKeyGetRequestCo
|
||||
{
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
TantargyId = model.TantargyId,
|
||||
FeltoltoTanarId = model.FeltoltoTanarId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class ErtekelesFajta
|
||||
{
|
||||
public int? Osztalyzat { get; set; }
|
||||
|
||||
public string Szoveg { get; set; }
|
||||
|
||||
public int? Szazalek { get; set; }
|
||||
|
||||
public static implicit operator ErtekelesFajta(ErtekelesFajtaCo co) => new ErtekelesFajta
|
||||
{
|
||||
Osztalyzat = co.Osztalyzat,
|
||||
Szoveg = co.Szoveg,
|
||||
Szazalek = co.Szazalek
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class ErtekelesGetRequest
|
||||
{
|
||||
[Required]
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
[Required]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
public static implicit operator ErtekelesGetRequestCo(ErtekelesGetRequest model) => new ErtekelesGetRequestCo
|
||||
{
|
||||
TanuloId = model.TanuloId,
|
||||
TantargyId = model.TantargyId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class ErtekelesGetResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public ErtekelesFajta Ertekeles { get; set; }
|
||||
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
public NaploEnum Tipus { get; set; }
|
||||
|
||||
public NaploEnum Mod { get; set; }
|
||||
|
||||
public int Suly { get; set; }
|
||||
|
||||
public string Tema { get; set; }
|
||||
|
||||
public static implicit operator ErtekelesGetResponse(ErtekelesGetResponseCo co) => new ErtekelesGetResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Ertekeles = co.Ertekeles,
|
||||
Datum = co.Datum,
|
||||
Tipus = NaploEnum.Create(co.Tipus),
|
||||
Mod = NaploEnum.Create(co.Mod),
|
||||
Suly = co.Suly,
|
||||
Tema = co.Tema
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class FeljegyzesRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
public int TanoraId { get; set; }
|
||||
|
||||
public static implicit operator FeljegyzesRequestCo(FeljegyzesRequest model) => new FeljegyzesRequestCo
|
||||
{
|
||||
Hash = model.Hash,
|
||||
TanoraId = model.TanoraId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Model.Converter;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class FeljegyzesResponse
|
||||
{
|
||||
public List<FeljegyzesInfoResponse> FeljegyzesLista { get; set; }
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
public static implicit operator FeljegyzesResponse(FeljegyzesResponseCo co) => new FeljegyzesResponse
|
||||
{
|
||||
FeljegyzesLista = GetModelConverter.CoToModel(co.FeljegyzesLista),
|
||||
TanuloId = co.TanuloId,
|
||||
};
|
||||
}
|
||||
|
||||
public class FeljegyzesInfoResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public NaploEnum Tipus { get; set; }
|
||||
|
||||
public static implicit operator FeljegyzesInfoResponse(FeljegyzesInfoResponseCo co) => new FeljegyzesInfoResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Tipus = NaploEnum.Create(co.Tipus),
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class MulasztasRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
public int TanoraId { get; set; }
|
||||
|
||||
public static implicit operator MulasztasRequestCo(MulasztasRequest model) => new MulasztasRequestCo
|
||||
{
|
||||
Hash = model.Hash,
|
||||
TanoraId = model.TanoraId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class MulasztasResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public NaploEnum Tipus { get; set; }
|
||||
public int? Keses { get; set; }
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
public static implicit operator MulasztasResponse(MulasztasResponseCo co) => new MulasztasResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Tipus = NaploEnum.Create(co.Tipus),
|
||||
Keses = co.Keses,
|
||||
TanuloId = co.TanuloId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Interface;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class OsztalyTanuloiRequest : IGetRequest
|
||||
{
|
||||
public string Hash { get; set; }
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public static implicit operator OsztalyTanuloiRequestCo(OsztalyTanuloiRequest model) => new OsztalyTanuloiRequestCo
|
||||
{
|
||||
Hash = model.Hash,
|
||||
OsztalyCsoportId = model.OsztalyCsoportId
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Model.Converter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class OsztalyTanuloiResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Nev { get; set; }
|
||||
public List<TanuloResponse> TanuloLista { get; set; }
|
||||
|
||||
public static implicit operator OsztalyTanuloiResponse(OsztalyTanuloiResponseCo co) => new OsztalyTanuloiResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Nev = co.Nev,
|
||||
TanuloLista = co.TanuloLista.ConvertAll(GetModelConverter.CoToModel)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
|
||||
public class TanugyiAdatokGetResponse
|
||||
{
|
||||
public bool IsJogviszonySzunetelteto { get; set; }
|
||||
|
||||
public bool IsSzakmaiGyakorlatonLevo { get; set; }
|
||||
|
||||
public static implicit operator TanugyiAdatokGetResponse(TanugyiAdatokGetResponseCo co) => new TanugyiAdatokGetResponse
|
||||
{
|
||||
IsJogviszonySzunetelteto = co.IsJogviszonySzunetelteto,
|
||||
IsSzakmaiGyakorlatonLevo = co.IsSzakmaiGyakorlatonLevo
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Get.Tanulo
|
||||
{
|
||||
public class TanuloResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public string AnyjaNev { get; set; }
|
||||
|
||||
public DateTime SzuletesUtc { get; set; }
|
||||
|
||||
public TanugyiAdatokGetResponse TanugyiAdatok { get; set; }
|
||||
|
||||
public List<TanuloMentessegResponseCo> Felmentesek { get; set; }
|
||||
|
||||
public static implicit operator TanuloResponse(TanuloResponseCo co) => new TanuloResponse
|
||||
{
|
||||
Id = co.Id,
|
||||
Nev = co.Nev,
|
||||
AnyjaNev = co.AnyjaNev,
|
||||
SzuletesUtc = co.Szuletes.ToUniversalTime(),
|
||||
TanugyiAdatok = co.TanugyiAdatok,
|
||||
Felmentesek = co.Felmentesek
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user