using CFX.Structures; using Sln.Iot.CFX.CFXConnect; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sln.Iot.CFX.CFXBusiness { /// /// CFX事件工具类 /// public class CFXEventTools { private static readonly Lazy lazy = new Lazy(() => new CFXEventTools()); public static CFXEventTools Instance { get { return lazy.Value; } } public List UnitPositionTrans(string[] unitIdentifier) { var units = new List(); for (int i = 0; i < unitIdentifier.Length; i++) { units.Add(new UnitPosition() { UnitIdentifier = unitIdentifier[i], PositionNumber = i, PositionName = $"Position{i}" }); } return units; } public List FaultsTrans() { } } }