using System.Collections.Generic; using System.Linq; using IwbZero.ToolCommon.StringModel; using WeEngine.ModelInfo; namespace WeEngine.CommonDto.WeInfo { public class WePackageDetailDto { public string PackageNo { get; set; } public WePackageDto Detail { get; set; } public string AllRoleNames { get; set; } public string AssessRoleNames { get; set; } public List Scenes { get; set; } public List Behaviors { get; set; } public List Guides { get; set; } public List EnvironResources { get; set; } public List BehaviorTags { get { var list= new List(); foreach (var b in Behaviors) { if (b.BehaviorTag.IsNotEmpty()) { var arr = b.BehaviorTag.Split(','); foreach (var bt in arr) { var temp = bt.Trim(); if (list.All(a => a.TagNo != temp)) { list.Add(new WeBehaviorTagDto(){TagNo = temp, TagName = temp }); } } } } return list; } } } }