init
This commit is contained in:
@@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user