using CommunityToolkit.Mvvm.ComponentModel;
using Serein.Library;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serein.Workbench.Models
{
///
/// 依赖信息
///
internal partial class FlowLibraryInfo : ObservableObject
{
[ObservableProperty]
private string _filePath;
[ObservableProperty]
private string _libraryName;
[ObservableProperty]
private ObservableCollection _methodInfo;
public List ActionNodes { get => MethodInfo.Where(x => x.NodeType == NodeType.Action.ToString()).ToList(); set { } }
public List FlipflopNodes { get => MethodInfo.Where(x => x.NodeType == NodeType.Flipflop.ToString()).ToList(); set { } }
public List UINodes { get => MethodInfo.Where(x => x.NodeType == NodeType.UI.ToString()).ToList(); set { } }
}
}