Files
FAtoPA/NodeData.cs
2024-11-21 07:47:06 +07:00

42 lines
1.2 KiB
C#

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();
}
}
}
}