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