tangxu
2022-10-26 fdddb786ac2cd2b1d89bab2932aedfec4d05e358
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using IStation.Untity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.DataDockingSocket
{
    /// <summary>
    /// app参数(可配制)
    /// </summary>
    public class AppParas
    {
        /// <summary>
        /// 查询指令项 
        /// </summary>
        public List<QueryInstructionItem> InstructionQuerys { get; set; }
 
        /// <summary>
        /// 开机指令
        /// </summary>
        public CtrlInstructionItem InstructionStartUp { get; set; }
 
        /// <summary>
        /// 关机指令
        /// </summary>
        public CtrlInstructionItem InstructionShutDown { get; set; }
 
        /// <summary>
        /// 是否保存原始
        /// </summary>
        public bool Src { get; set; }
 
        /// <summary>
        /// 是否调试
        /// </summary>
        public bool Debug { get; set; }
    }
 
 
 
    /// <summary>
    /// 查询指令项
    /// </summary>
    public class QueryInstructionItem
    {
        /// <summary>
        /// 指令名
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 指令
        /// </summary>
        public string Content { get; set; }
 
        /// <summary>
        /// 指令发送频率 秒
        /// </summary>    
        public int Frequency { get; set; }
 
        /// <summary>
        /// 指令发送间隔
        /// </summary>
        public int SpaceTime { get; set; }
    }
 
    /// <summary>
    /// 控制指令项
    /// </summary>
    public class CtrlInstructionItem
    {
        /// <summary>
        /// 指令
        /// </summary>
        public string Content { get; set; }
 
 
    }
 
 
 
}