1
wxr
2023-03-31 7e42cc13a14b7de31c9f5d5c61cdf24f3246335d
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Shared
{
    [System.Serializable]
    public class Common : ABase
    {
        /// <summary>
        /// 子网号
        /// </summary>
        public byte SubnetID;
 
        /// <summary>
        /// 设备号
        /// </summary>
        public byte DeviceID;
 
        [Newtonsoft.Json.JsonIgnore]
        public virtual string CommonLoopID {
            get {
                return SubnetID.ToString () + "_" + DeviceID.ToString () + "_" + LoopID.ToString ();
            }
        }
        public byte LoopID;
 
        public byte sceneID = 0;
        public byte LoopCount = 1;
 
        /// <summary>
        /// 临时参数
        /// 默认为0,bus传过来时默认为1
        /// </summary>
        public byte obj1 = 0;
        public byte obj2;
        public byte obj3;
        public byte obj4;
        public byte obj5;
        [Newtonsoft.Json.JsonIgnore]
        public byte BigClass {
            get {
                return (byte)(((int)this.Type) / 256);
            }
        }
        [Newtonsoft.Json.JsonIgnore]
        public virtual byte MinClass {
            get {
                return (byte)(((int)this.Type) % 256);
            }
        }
 
        //public string IconPath {
        //    get{
        //        string iconPath = "";
        //        return iconPath;
        //    }
        //}
 
        /// <summary>
        /// 是否为混合模块
        /// </summary>
        public bool isMixBox = false;
 
        /// <summary>
        /// 保存数据时的文件名
        /// </summary>
        public string SavePath = "";
 
        public string MAC = string.Empty;
 
        /// <summary>
        /// 是否在线
        /// </summary>
        public bool Online = true;
 
    }
}