using Bro.Common.Helper;
|
using System;
|
using System.Collections.Generic;
|
using static Bro.Common.Helper.EnumHelper;
|
|
namespace Bro.Common.Model
|
{
|
public class IOItem : IComplexDisplay
|
{
|
/// <summary>
|
/// IO点编号
|
/// </summary>
|
public int IONum { get; set; }
|
|
/// <summary>
|
/// IO点的值
|
/// </summary>
|
public int Value { get; set; }
|
|
/// <summary>
|
/// IO点是in还是out
|
/// </summary>
|
public IOModel Model { get; set; }
|
|
public string GetDisplayText()
|
{
|
return $"{Model.GetEnumDescription()},编号{IONum},IO点的值{Value}";
|
}
|
}
|
}
|