Add project files.
This commit is contained in:
41
NodeData.cs
Normal file
41
NodeData.cs
Normal 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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user