35 lines
1023 B
C#
35 lines
1023 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StandardScene.ExtendDevice.ButtonBox
|
|
{
|
|
/// <summary>
|
|
/// 按钮盒模型
|
|
/// </summary>
|
|
public class ButtonBoxModel
|
|
{
|
|
public string Ip { get; set; } = string.Empty;
|
|
public int Port { get; set; } = 0;
|
|
public int Index { get; set; } = 0;
|
|
public string Type { get; set; } = string.Empty;
|
|
public List<ButtonModel> Buttons { get; set; } = new List<ButtonModel>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按钮模型
|
|
/// </summary>
|
|
public class ButtonModel
|
|
{
|
|
public int Index { get; set; } = 0;
|
|
public string TriggerMission { get; set; } = string.Empty;
|
|
public string TriggerMethod { get; set; } = string.Empty;
|
|
public string TriggerMethodParams { get; set; } = string.Empty;
|
|
public string TriggerState { get; set; } = string.Empty;
|
|
public ushort TriggerDelay { get; set; } = 0;
|
|
}
|
|
}
|
|
|