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 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) }; } }