using System;
using System.Collections.Generic;
namespace HDL_ON
{
public class SensorPushHistory
{
///
/// MAC
///
public string MAC { get; set; }
///
/// 设备的子网号
///
public int SubnetID { get; set; }
///
/// 设备号
///
public int DeviceID { get; set; }
///
/// 如果没有则默认为1
///
public int LoopID { get; set; }
///
/// 大类型
///
public int LargeType { get; set; }
///
/// 小类型
///
public int SmallType { get; set; }
///
/// 用于查询指定月份(如果不是查询月份则默认为0)
///
public int NowMonth { get; set; }
///
/// 查询类型
///
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
{
///
/// 实际目标值
///
public float TargetValue { get; set; }
///
/// 查询的时间集群
///
public DateTime CreatedOnUtc { get; set; }
}
}