namespace leak_test_project.Models
{
///
/// DIO 보드의 개별 포인트(입력 또는 출력)를 나타내는 모델.
///
public class DioPoint
{
/// 포인트 이름 (예: LEFT_START, LEFT_OK, RIGHT_NG)
public string Name { get; set; }
/// 설명 (예: 좌측 시작 신호)
public string Description { get; set; }
/// true: 입력, false: 출력
public bool IsInput { get; set; }
/// 현재 값 (ON=true, OFF=false)
public bool Value { get; set; }
}
///
/// DIO 입력 변경 시 사용되는 이벤트 인자.
///
public class DioEventArgs : System.EventArgs
{
public string PointName { get; set; }
public bool NewValue { get; set; }
public DioEventArgs(string pointName, bool newValue)
{
PointName = pointName;
NewValue = newValue;
}
}
}