| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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<SceneModel> Scenes { get; set; }
- public List<BehaviorModel> Behaviors { get; set; }
- public List<GuideModel> Guides { get; set; }
- public List<EnvironResourceModel> EnvironResources { get; set; }
- public List<WeBehaviorTagDto> BehaviorTags { get
- {
- var list= new List<WeBehaviorTagDto>();
- 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;
- } }
- }
- }
|