init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
BIN
Kreta.WebApi/Naplo/Kreta.Naplo.Domain/V2/.DS_Store
vendored
Normal file
BIN
Kreta.WebApi/Naplo/Kreta.Naplo.Domain/V2/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Enum;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Converter
|
||||
{
|
||||
/// <summary>
|
||||
/// This registers the converter functions called CoToModel and ModelToCo, but it's not mandatory to do.
|
||||
/// </summary>
|
||||
public static class EnumConverter
|
||||
{
|
||||
public static NaploEnumList CoToModel<T>(NaploEnumListCo<T> co) where T : struct, IConvertible => NaploEnumList.Create(co);
|
||||
public static NaploEnumListItem CoToModel(NaploEnumListItemCo co) => co;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Enum;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.OpenBoard;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.JavasoltJelenletTemplate;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Orarend;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanar;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanmenet;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.OpenBoard;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Ora.JavasoltJelenletTemplate;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Orarend;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanar;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanmenet;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanulo;
|
||||
using OrarendiOra = Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using OrarendiOraCo = Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using TanitasiOra = Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
using TanitasiOraCo = Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Converter
|
||||
{
|
||||
/// <summary>
|
||||
/// This registers the converter functions called CoToModel and ModelToCo, but it's not mandatory to do.
|
||||
/// </summary>
|
||||
public static class GetModelConverter
|
||||
{
|
||||
public static ProfilResponse CoToModel(ProfilResponseCo co) => co;
|
||||
private static IskolaorResponse CoToModel(IskolaorResponseCo co) => co;
|
||||
public static List<IskolaorResponse> CoToModel(List<IskolaorResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static OraGetResponse CoToModel(OraGetResponseCo co) => co;
|
||||
public static List<OraGetResponse> CoToModel(List<OraGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
public static TanuloResponse CoToModel(TanuloResponseCo co) => co;
|
||||
public static OsztalyTanuloiResponse CoToModel(OsztalyTanuloiResponseCo co) => co;
|
||||
private static MulasztasResponse CoToModel(MulasztasResponseCo co) => co;
|
||||
public static List<MulasztasResponse> CoToModel(List<MulasztasResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static FeljegyzesResponse CoToModel(FeljegyzesResponseCo co) => co;
|
||||
public static List<FeljegyzesResponse> CoToModel(List<FeljegyzesResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static FeljegyzesInfoResponse CoToModel(FeljegyzesInfoResponseCo co) => co;
|
||||
public static List<FeljegyzesInfoResponse> CoToModel(List<FeljegyzesInfoResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static TanmenetItemGetResponse CoToModel(TanmenetItemGetResponseCo co) => co;
|
||||
public static List<TanmenetItemGetResponse> CoToModel(List<TanmenetItemGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static TanmenetGetResponse CoToModel(TanmenetGetResponseCo co) => co;
|
||||
public static List<TanmenetGetResponse> CoToModel(List<TanmenetGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static OrarendiOra.JavasoltJelenletGetResponse CoToModel(OrarendiOraCo.JavasoltJelenletGetResponseCo co) => co;
|
||||
public static List<OrarendiOra.JavasoltJelenletGetResponse> CoToModel(List<OrarendiOraCo.JavasoltJelenletGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static OrarendiOra.JavasoltJelenletSzuroGetResponse CoToModel(OrarendiOraCo.JavasoltJelenletSzuroGetResponseCo co) => co;
|
||||
public static List<OrarendiOra.JavasoltJelenletSzuroGetResponse> CoToModel(List<OrarendiOraCo.JavasoltJelenletSzuroGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static TanitasiOra.JavasoltJelenletGetResponse CoToModel(TanitasiOraCo.JavasoltJelenletGetResponseCo co) => co;
|
||||
public static List<TanitasiOra.JavasoltJelenletGetResponse> CoToModel(List<TanitasiOraCo.JavasoltJelenletGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static TanitasiOra.JavasoltJelenletSzuroGetResponse CoToModel(TanitasiOraCo.JavasoltJelenletSzuroGetResponseCo co) => co;
|
||||
public static List<TanitasiOra.JavasoltJelenletSzuroGetResponse> CoToModel(List<TanitasiOraCo.JavasoltJelenletSzuroGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static JavasoltJelenletTemplateGetResponse CoToModel(JavasoltJelenletTemplateGetResponseCo co) => co;
|
||||
public static List<JavasoltJelenletTemplateGetResponse> CoToModel(List<JavasoltJelenletTemplateGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static JavasoltJelenletTemplateItemGetResponse CoToModel(JavasoltJelenletTemplateItemGetResponseCo co) => co;
|
||||
public static List<JavasoltJelenletTemplateItemGetResponse> CoToModel(List<JavasoltJelenletTemplateItemGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static OrarendiOra.JavasoltJelenletTanuloGetResponse CoToModel(OrarendiOraCo.JavasoltJelenletTanuloGetResponseCo co) => co;
|
||||
public static List<OrarendiOra.JavasoltJelenletTanuloGetResponse> CoToModel(List<OrarendiOraCo.JavasoltJelenletTanuloGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static TanitasiOra.JavasoltJelenletTanuloGetResponse CoToModel(TanitasiOraCo.JavasoltJelenletTanuloGetResponseCo co) => co;
|
||||
public static List<TanitasiOra.JavasoltJelenletTanuloGetResponse> CoToModel(List<TanitasiOraCo.JavasoltJelenletTanuloGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
public static FeltolthetoFajlokSzamaResponse CoToModel(FeltolthetoFajlokSzamaResponseCo co) => co;
|
||||
|
||||
private static NaploEnumListItem CoToModel(NaploEnumListItemCo co) => co;
|
||||
public static List<NaploEnumListItem> CoToModel(List<NaploEnumListItemCo> co) => co.ConvertAll(CoToModel);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.OpenBoard;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanmenet;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Tanulo;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Ertekeles;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Naplozas;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.OpenBoard;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.OpenBoard;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanmenet;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Model.Post.Ertekeles;
|
||||
using Kreta.Naplo.Domain.V2.Model.Post.Naplozas;
|
||||
using Kreta.Naplo.Domain.V2.Model.Post.OpenBoard;
|
||||
using OrarendiOra = Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using OrarendiOraCo = Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using TanitasiOra = Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
using TanitasiOraCo = Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Converter
|
||||
{
|
||||
/// <summary>
|
||||
/// This registers the converter functions called CoToModel and ModelToCo, but it's not mandatory to do.
|
||||
/// </summary>
|
||||
public static class PostModelConverter
|
||||
{
|
||||
#region Request
|
||||
public static TanuloForOraNaplozasRequestCo ModelToCo(TanuloForOraNaplozasRequest model) => model;
|
||||
public static List<TanuloForOraNaplozasRequestCo> ModelToCo(List<TanuloForOraNaplozasRequest> model) => model.ConvertAll(ModelToCo);
|
||||
public static OraNaplozasRequestCo ModelToCo(OraNaplozasRequest model) => model;
|
||||
public static List<OraNaplozasRequestCo> ModelToCo(List<OraNaplozasRequest> model) => model.ConvertAll(ModelToCo);
|
||||
public static OsztalyCsoportErtekelesRequestCo ModelToCo(OsztalyCsoportErtekelesRequest model) => model;
|
||||
public static List<OsztalyCsoportErtekelesRequestCo> ModelToCo(List<OsztalyCsoportErtekelesRequest> model) => model.ConvertAll(ModelToCo);
|
||||
private static TanuloForOsztalyCsoportErtekelesRequestCo ModelToCo(TanuloForOsztalyCsoportErtekelesRequest model) => model;
|
||||
public static List<TanuloForOsztalyCsoportErtekelesRequestCo> ModelToCo(List<TanuloForOsztalyCsoportErtekelesRequest> model) => model.ConvertAll(ModelToCo);
|
||||
private static TanmenetGetRequestCo ModelToCo(TanmenetGetRequest model) => model;
|
||||
public static List<TanmenetGetRequestCo> ModelToCo(List<TanmenetGetRequest> model) => model.ConvertAll(ModelToCo);
|
||||
public static FeltoltottFajlRequestCo ModelToCo(FeltoltottFajlRequest model) => model;
|
||||
public static FeltolthetoFajlokSzamaRequestCo ModelToCo(FeltolthetoFajlokSzamaRequest model) => model;
|
||||
public static ErtekelesGetRequestCo ModelToCo(ErtekelesGetRequest model) => model;
|
||||
|
||||
private static TanmenetKeyGetRequestCo ModelToCo(TanmenetKeyGetRequest model) => model;
|
||||
public static TanmenetKeyGetRequestCo[] ModelToCo(TanmenetKeyGetRequest[] model) => Array.ConvertAll(model, ModelToCo);
|
||||
private static OrarendiOraCo.JavasoltJelenletKeyGetRequestCo ModelToCo(OrarendiOra.JavasoltJelenletKeyGetRequest model) => model;
|
||||
public static OrarendiOraCo.JavasoltJelenletKeyGetRequestCo[] ModelToCo(OrarendiOra.JavasoltJelenletKeyGetRequest[] model) => Array.ConvertAll(model, ModelToCo);
|
||||
private static TanitasiOraCo.JavasoltJelenletKeyGetRequestCo ModelToCo(TanitasiOra.JavasoltJelenletKeyGetRequest model) => model;
|
||||
public static TanitasiOraCo.JavasoltJelenletKeyGetRequestCo[] ModelToCo(TanitasiOra.JavasoltJelenletKeyGetRequest[] model) => Array.ConvertAll(model, ModelToCo);
|
||||
|
||||
#endregion Request
|
||||
|
||||
#region Response
|
||||
private static OraNaplozasResponse CoToModel(OraNaplozasResponseCo co) => co;
|
||||
public static List<OraNaplozasResponse> CoToModel(List<OraNaplozasResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
private static ErtekelesResponse CoToModel(ErtekelesResponseCo co) => co;
|
||||
public static List<ErtekelesResponse> CoToModel(List<ErtekelesResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
public static FeltoltottFajlResponse CoToModel(FeltoltottFajlResponseCo co) => co;
|
||||
private static ErtekelesGetResponse CoToModel(ErtekelesGetResponseCo co) => co;
|
||||
public static List<ErtekelesGetResponse> CoToModel(List<ErtekelesGetResponseCo> co) => co.ConvertAll(CoToModel);
|
||||
#endregion Response
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
namespace Kreta.Naplo.Domain.V2.Interface
|
||||
{
|
||||
public interface IGetRequest
|
||||
{
|
||||
string Hash { get; set; }
|
||||
}
|
||||
}
|
BIN
Kreta.WebApi/Naplo/Kreta.Naplo.Domain/V2/Model/.DS_Store
vendored
Normal file
BIN
Kreta.WebApi/Naplo/Kreta.Naplo.Domain/V2/Model/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Enum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.CustomEnum
|
||||
{
|
||||
public class NaploEnum
|
||||
{
|
||||
public static implicit operator int(NaploEnum naploEnum) => naploEnum.Id;
|
||||
public static implicit operator int?(NaploEnum naploEnum) => naploEnum?.Id;
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Nev { get; set; }
|
||||
private NaploEnum() { }
|
||||
public static NaploEnum Create<T>(NaploEnumCo<T> co) where T : struct, IConvertible
|
||||
{
|
||||
if (co == null)
|
||||
return null;
|
||||
return new NaploEnum
|
||||
{
|
||||
Id = co.Id,
|
||||
Nev = co.Nev
|
||||
};
|
||||
}
|
||||
public static NaploEnumCo<T> Create<T>(NaploEnum model) where T : struct, IConvertible
|
||||
{
|
||||
if (model == null)
|
||||
return null;
|
||||
return new NaploEnumCo<T>(model.Id);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Enum;
|
||||
using Kreta.Naplo.Domain.V2.Model.Converter;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.CustomEnum
|
||||
{
|
||||
public class NaploEnumList
|
||||
{
|
||||
public List<NaploEnumListItem> ElemLista { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns an NaploEnumList Instance that has been converted from NaploEnumListCO
|
||||
/// </summary>
|
||||
public static NaploEnumList Create<T>(NaploEnumListCo<T> co) where T : struct, IConvertible
|
||||
=> new NaploEnumList
|
||||
{
|
||||
ElemLista = co.ElemLista.ConvertAll(EnumConverter.CoToModel)
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Enum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.CustomEnum
|
||||
{
|
||||
public class NaploEnumListItem
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Nev { get; set; }
|
||||
|
||||
/// public string Leiras { get; set; }
|
||||
|
||||
public static implicit operator NaploEnumListItem(NaploEnumListItemCo co) => new NaploEnumListItem
|
||||
{
|
||||
Id = co.Id,
|
||||
/// TODO Nev = co.Nev
|
||||
Nev = co.Description /// TODO rename Leiras
|
||||
};
|
||||
}
|
||||
}
|
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
BIN
Kreta.WebApi/Naplo/Kreta.Naplo.Domain/V2/Model/Post/.DS_Store
vendored
Normal file
BIN
Kreta.WebApi/Naplo/Kreta.Naplo.Domain/V2/Model/Post/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
namespace Kreta.Naplo.Domain.V2.Model.Post.Ertekeles
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Ertekeles;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
public class ErtekelesRequest
|
||||
{
|
||||
public NaploEnum OsztalyzatTipus { get; set; }
|
||||
|
||||
public int? Szazalek { get; set; }
|
||||
|
||||
public string Szoveg { get; set; }
|
||||
|
||||
public static implicit operator ErtekelesRequestCo(ErtekelesRequest model) => new ErtekelesRequestCo
|
||||
{
|
||||
OsztalyzatTipus = NaploEnum.Create<OsztalyzatTipusEnum>(model.OsztalyzatTipus),
|
||||
Szazalek = model.Szazalek,
|
||||
Szoveg = model.Szoveg
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
namespace Kreta.Naplo.Domain.V2.Model.Post.Ertekeles
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Ertekeles;
|
||||
using Kreta.Core.Validation.Exceptions;
|
||||
|
||||
public class ErtekelesResponse
|
||||
{
|
||||
public ValidationException Exception { get; set; }
|
||||
|
||||
public static implicit operator ErtekelesResponse(ErtekelesResponseCo co) => new ErtekelesResponse
|
||||
{
|
||||
Exception = co.Exception,
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
namespace Kreta.Naplo.Domain.V2.Model.Post.Ertekeles
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Ertekeles;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.PostModelConverter;
|
||||
|
||||
public class OsztalyCsoportErtekelesRequest
|
||||
{
|
||||
public DateTime DatumUtc { get; set; }
|
||||
|
||||
public NaploEnum Mod { get; set; }
|
||||
|
||||
public NaploEnum Tipus { get; set; }
|
||||
|
||||
public string Tema { get; set; }
|
||||
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
public List<TanuloForOsztalyCsoportErtekelesRequest> TanuloLista { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportErtekelesRequestCo(OsztalyCsoportErtekelesRequest model) => new OsztalyCsoportErtekelesRequestCo
|
||||
{
|
||||
Datum = model.DatumUtc.ToLocalTime().Date,
|
||||
Mod = NaploEnum.Create<ErtekelesModEnum>(model.Mod),
|
||||
Tipus = NaploEnum.Create<ErtekelesTipusEnum>(model.Tipus),
|
||||
Tema = model.Tema,
|
||||
OsztalyCsoportId = model.OsztalyCsoportId,
|
||||
TantargyId = model.TantargyId,
|
||||
TanuloLista = ModelToCo(model.TanuloLista)
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
namespace Kreta.Naplo.Domain.V2.Model.Post.Ertekeles
|
||||
{
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Ertekeles;
|
||||
|
||||
public class TanuloForOsztalyCsoportErtekelesRequest
|
||||
{
|
||||
public ErtekelesRequest Ertekeles { get; set; }
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
public int MobilId { get; set; }
|
||||
|
||||
public static implicit operator TanuloForOsztalyCsoportErtekelesRequestCo(TanuloForOsztalyCsoportErtekelesRequest model) => new TanuloForOsztalyCsoportErtekelesRequestCo
|
||||
{
|
||||
Ertekeles = model.Ertekeles,
|
||||
TanuloId = model.TanuloId,
|
||||
MobilId = model.MobilId
|
||||
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Naplozas;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Post.Naplozas
|
||||
{
|
||||
public class MulasztasForOraNaplozasRequest
|
||||
{
|
||||
public NaploEnum Tipus { get; set; }
|
||||
public int? Keses { get; set; }
|
||||
|
||||
public static implicit operator MulasztasForOraNaplozasRequestCo(MulasztasForOraNaplozasRequest model) => new MulasztasForOraNaplozasRequestCo
|
||||
{
|
||||
Tipus = NaploEnum.Create<MulasztasTipusEnum>(model.Tipus),
|
||||
Keses = model.Keses
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
namespace Kreta.Naplo.Domain.V2.Model.Post.Naplozas
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Naplozas;
|
||||
using Kreta.BusinessLogic.Utils;
|
||||
using static Kreta.Naplo.Domain.V2.Model.Converter.PostModelConverter;
|
||||
|
||||
public class OraNaplozasRequest
|
||||
{
|
||||
public DateTime DatumUtc { get; set; }
|
||||
|
||||
public string Hazifeladat { get; set; }
|
||||
|
||||
public DateTime? HazifeladatHataridoUtc { get; set; }
|
||||
|
||||
public int? HazifeladatId { get; set; }
|
||||
|
||||
public bool IsElmaradt { get; set; }
|
||||
|
||||
public int MobilId { get; set; }
|
||||
|
||||
public int? OrarendiOraId { get; set; }
|
||||
|
||||
public DateTime RogzitesDatumUtc { get; set; }
|
||||
|
||||
public int? TanitasiOraId { get; set; }
|
||||
|
||||
public List<TanuloForOraNaplozasRequest> TanuloLista { get; set; } = new List<TanuloForOraNaplozasRequest>();
|
||||
|
||||
public string Tema { get; set; }
|
||||
|
||||
public static implicit operator OraNaplozasRequestCo(OraNaplozasRequest model) => new OraNaplozasRequestCo
|
||||
{
|
||||
MobilId = model.MobilId,
|
||||
OrarendiOraId = model.OrarendiOraId,
|
||||
TanitasiOraId = model.TanitasiOraId,
|
||||
Datum = model.DatumUtc.ToLocalTime(),
|
||||
RogzitesDatum = model.RogzitesDatumUtc.ToLocalTime(),
|
||||
IsElmaradt = model.IsElmaradt,
|
||||
Tema = model.Tema,
|
||||
HazifeladatId = model.HazifeladatId,
|
||||
Hazifeladat = CommonUtils.ReplaceNewLineToHtmlTag(model.Hazifeladat),
|
||||
HazifeladatHatarido = model.HazifeladatHataridoUtc?.ToLocalTime(),
|
||||
TanuloLista = ModelToCo(model.TanuloLista)
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Naplozas;
|
||||
using Kreta.Core.Validation.Exceptions;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Post.Naplozas
|
||||
{
|
||||
public class OraNaplozasResponse
|
||||
{
|
||||
public int MobilId { get; set; }
|
||||
|
||||
public ValidationException Exception { get; set; }
|
||||
|
||||
public static implicit operator OraNaplozasResponse(OraNaplozasResponseCo co) => new OraNaplozasResponse
|
||||
{
|
||||
MobilId = co.MobilId,
|
||||
Exception = co.Exception
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.Naplozas;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Post.Naplozas
|
||||
{
|
||||
public class TanuloForOraNaplozasRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public MulasztasForOraNaplozasRequest Mulasztas { get; set; }
|
||||
public List<NaploEnum> FeljegyzesTipusLista { get; set; } = new List<NaploEnum>();
|
||||
|
||||
public static implicit operator TanuloForOraNaplozasRequestCo(TanuloForOraNaplozasRequest model) => new TanuloForOraNaplozasRequestCo
|
||||
{
|
||||
Id = model.Id,
|
||||
Mulasztas = model.Mulasztas,
|
||||
FeljegyzesTipusLista = model.FeljegyzesTipusLista.Select(x => NaploEnum.Create<FeljegyzesTipusEnum>(x)).ToList()
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.OpenBoard;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Post.OpenBoard
|
||||
{
|
||||
public class FeltoltottFajlRequest
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string ContentAsBase64EncodedString { get; set; }
|
||||
public int? OrarendiOraId { get; set; }
|
||||
public int? TanitasiOraId { get; set; }
|
||||
|
||||
public static implicit operator FeltoltottFajlRequestCo(FeltoltottFajlRequest model) => new FeltoltottFajlRequestCo
|
||||
{
|
||||
Id = model.Id,
|
||||
ContentAsBase64EncodedString = model.ContentAsBase64EncodedString,
|
||||
OrarendiOraId = model.OrarendiOraId,
|
||||
TanitasiOraId = model.TanitasiOraId
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Post.OpenBoard;
|
||||
using Kreta.Core.Validation.Exceptions;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Post.OpenBoard
|
||||
{
|
||||
public class FeltoltottFajlResponse
|
||||
{
|
||||
public int FeltolthetoFajlokSzama { get; set; }
|
||||
public ValidationException Exception { get; set; }
|
||||
|
||||
public static implicit operator FeltoltottFajlResponse(FeltoltottFajlResponseCo co) => new FeltoltottFajlResponse
|
||||
{
|
||||
FeltolthetoFajlokSzama = co.FeltolthetoFajlokSzama,
|
||||
Exception = co.Exception
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
using System.Net;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model
|
||||
{
|
||||
public sealed class ResponseWrapper<T> where T : class, new()
|
||||
{
|
||||
public HttpStatusCode StatusCode { get; set; }
|
||||
public DateTime UtolsoSzinkronDatumUtc { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public T Adatcsomag { get; set; }
|
||||
|
||||
private ResponseWrapper() { }
|
||||
|
||||
/// <summary>
|
||||
/// Returns an ResponseWrapper Instance that has been converted from ResponseWrapperCO
|
||||
/// </summary>
|
||||
/// <typeparam name="TIn">Co Type</typeparam>
|
||||
/// <param name="modelConverter">The modelConverter for Adatcsomag prop</param>
|
||||
public static ResponseWrapper<T> Create<TIn>(ResponseWrapperCo<TIn> co, Converter<TIn, T> modelConverter) where TIn : class, new()
|
||||
=> new ResponseWrapper<T>
|
||||
{
|
||||
StatusCode = co.StatusCode,
|
||||
UtolsoSzinkronDatumUtc = co.UtolsoSzinkronDatumUtc,
|
||||
Hash = co.Hash,
|
||||
Adatcsomag = co.Adatcsomag != null ? modelConverter(co.Adatcsomag) : null
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Kreta.Naplo.Domain.V2.Model;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.OpenBoard;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Orarend;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanmenet;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanulo;
|
||||
using Kreta.Naplo.Domain.V2.Model.Post.Naplozas;
|
||||
using Kreta.Naplo.Domain.V2.Model.Post.OpenBoard;
|
||||
using OrarendiOra = Kreta.Naplo.Domain.V2.Model.Get.Ora.OrarendiOra.JavasoltJelenlet;
|
||||
using TanitasiOra = Kreta.Naplo.Domain.V2.Model.Get.Ora.TanitasiOra.JavasoltJelenlet;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Service
|
||||
{
|
||||
public interface ICommonService
|
||||
{
|
||||
Task<List<object>> ListTanmenetAsync(TanmenetGetRequest request);
|
||||
Task<List<object>> ListJavasoltJelenletAsync(OrarendiOra.JavasoltJelenletGetRequest request);
|
||||
Task<List<object>> ListJavasoltJelenletAsync(TanitasiOra.JavasoltJelenletGetRequest request);
|
||||
Task<ResponseWrapper<List<object>>> ListJavasoltJelenletTemplateAsync(object request);
|
||||
Task<ResponseWrapper<List<OraGetResponse>>> GetOraListaAsync(OraGetRequest request);
|
||||
Task<List<OraNaplozasResponse>> OraNaplozasAsync(List<OraNaplozasRequest> request);
|
||||
Task<FeltoltottFajlResponse> PostFajlFeltoltesAsync(FeltoltottFajlRequest request);
|
||||
Task<FeltolthetoFajlokSzamaResponse> GetFeltolthetoFajlokSzamaAsync(FeltolthetoFajlokSzamaRequest request);
|
||||
Task<List<ErtekelesGetResponse>> GetTanuloErtekeleseiAsync(ErtekelesGetRequest request);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Kreta.Naplo.Domain.V2.Model;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Enum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Service
|
||||
{
|
||||
public interface IEnumService
|
||||
{
|
||||
Task<ResponseWrapper<List<NaploEnumListItem>>> GetNaploEnumAsync(EnumRequest request);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Kreta.Naplo.Domain.V2.Model.Post.Ertekeles;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Service
|
||||
{
|
||||
public interface IErtekelesService
|
||||
{
|
||||
Task<List<ErtekelesResponse>> PostOsztalyCsoportErtekelesAsync(List<OsztalyCsoportErtekelesRequest> request);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Kreta.Naplo.Domain.V2.Model;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanar;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Service
|
||||
{
|
||||
public interface IIskolaorService
|
||||
{
|
||||
Task<ResponseWrapper<List<IskolaorResponse>>> GetIskolaorAsync(IskolaorRequest request);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Kreta.Naplo.Domain.V2.Model;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanulo;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Service
|
||||
{
|
||||
public interface IOraService
|
||||
{
|
||||
Task<ResponseWrapper<List<MulasztasResponse>>> GetMulasztasAsync(MulasztasRequest request);
|
||||
Task<ResponseWrapper<List<FeljegyzesResponse>>> GetFeljegyzesAsync(FeljegyzesRequest request);
|
||||
Task<ResponseWrapper<OsztalyTanuloiResponse>> GetOsztalyTanuloiAsync(OsztalyTanuloiRequest request);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
using System.Threading.Tasks;
|
||||
using Kreta.Naplo.Domain.V2.Model;
|
||||
using Kreta.Naplo.Domain.V2.Model.Get.Tanar;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Service
|
||||
{
|
||||
public interface ITanarService
|
||||
{
|
||||
Task<ResponseWrapper<ProfilResponse>> GetProfilAsync(ProfilRequest request);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue