Add project files.

This commit is contained in:
2024-11-21 13:51:18 +07:00
parent 6997700fbb
commit 84885e5047
22 changed files with 4152 additions and 0 deletions

41
NodeData.cs Normal file
View File

@@ -0,0 +1,41 @@
using FSM5000FSIAPI.Version3;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FAtoPA
{
class NodeData
{
public SIID SIID { get; set; }
public int Type { get; set; }
public String Label { get; set; }
public String Description { get; set; }
public NodeState State { get; set; }
public NodeData() { }
}
class NodeState
{
public DateTime TimeStamp { get; set; }
public String AdminState { get; set; }
public String LogicalState { get; set; }
public String CompoundState { get; set; }
public String StateOfHandling { get; set; }
public NodeState() { }
public NodeState(ItemState itemState)
{
if (itemState != null)
{
this.TimeStamp = itemState.TimeStamp;
this.AdminState = itemState.AdminState.ToString();
this.LogicalState = itemState.LogicalState.ToString();
this.StateOfHandling = itemState.StateOfHandling.ToString();
this.CompoundState = itemState.CompoundState.ToString();
}
}
}
}