22 lines
694 B
C#
22 lines
694 B
C#
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)
|
|
};
|
|
}
|
|
}
|