init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue