wxr
2019-11-25 29a6e6d747d13fc285c8dd86649417f60613388f
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
using System;
using System.Collections.Generic;
 
namespace HDL_ON
{
 
    public class SensorPushHistory
    {
 
        /// <summary>
        /// MAC
        /// </summary>
        public string MAC { get; set; }
 
        /// <summary>
        /// 设备的子网号
        /// </summary>
        public int SubnetID { get; set; }
 
        /// <summary>
        /// 设备号
        /// </summary>
        public int DeviceID { get; set; }
 
        /// <summary>
        /// 如果没有则默认为1
        /// </summary>
        public int LoopID { get; set; }
 
 
        /// <summary>
        /// 大类型
        /// </summary>
        public int LargeType { get; set; }
 
        /// <summary>
        /// 小类型
        /// </summary>
        public int SmallType { get; set; }
 
        /// <summary>
        /// 用于查询指定月份(如果不是查询月份则默认为0)
        /// </summary>
        public int NowMonth { get; set; }
 
        /// <summary>
        /// 查询类型
        /// </summary>
        public QueryType QueryType { get; set; }
 
        public int LocalTimeZone {
            get {
                try {
                    return Convert.ToInt32 (DateTime.Now.ToString ("%z"));
                }catch{
                    return 0;
                }
            }
        }
    }
 
    public enum QueryType
    {
        NowDay = 0,//当天
        NowMonth = 1,//指定月
        NowYear = 2,//今年
        LatelySevenDay = 3//最近七天
    }
 
 
    public class SensorPushHistoryRes
    {
 
        /// <summary>
        /// 实际目标值
        /// </summary>
        public float TargetValue { get; set; }
 
        /// <summary>
        /// 查询的时间集群
        /// </summary>
        public DateTime CreatedOnUtc { get; set; }
    }
}