using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Service
{
///
///
///
public static class AttentionObjectSelectedExtensions
{
///
///
///
public static List ToEntityList(this List list)
{
if (list == null || list.Count() < 1)
return default;
return list.Select(x => new Entity.AttentionObjectSelected() {
CorpID = x.CorpID,
ObjectType = x.ObjectType,
ObjectID = x.ObjectID,
Selected = x.Selected
}).ToList();
}
}
}