using Yunda.ISAS.DataMonitoringServer.DataAnalysis.TeleInfoSave;
namespace Yunda.SOMS.DataMonitoringServer.Service.DataAnalysis.Model
{
public class Content
{
private string _webIp = "127.0.0.1";
///
/// Webip地址
///
public string WebIp
{
get { return _webIp; }
set { _webIp = value; }
}
private int _webPort = 2404;
///
/// 远动机端口
///
public int WebPort
{
get { return _webPort; }
set { _webPort = value; }
}
private int _devAddr = 0;
///
/// 装置地址
///
public int DevAddr
{
get { return _devAddr; }
set { _devAddr = value; }
}
private int _devYcNum = 0;
///
/// 遥测数量
///
public int DevYcNum
{
get { return _devYcNum; }
set { _devYcNum = value; }
}
private int _devYcStart = 0;
///
/// 遥测起始地址
///
public int DevYcStart
{
get { return _devYcStart; }
set { _devYcStart = value; }
}
private int _devYxNum;
///
/// 遥信数量
///
public int DevYxNum
{
get { return _devYxNum; }
set { _devYxNum = value; }
}
private int _devYxStart;
///
/// 遥信起始地址
///
public int DevYxStart
{
get { return _devYxStart; }
set { _devYxStart = value; }
}
///
/// 电度数量
///
public int DevDdNum { get; set; }
///
/// 电度起始地址
///
public int DevDdStart { get; set; }
private string _localIp = "127.0.0.1";
///
/// 本机ip地址
///
public string LocalIp
{
get { return _localIp; }
set { _localIp = value; }
}
private string _devIp = "127.0.0.1";
///
/// 远东机ip地址
///
public string DevIp
{
get { return _devIp; }
set { _devIp = value; }
}
private int _devPort = 2406;
///
/// 远动机端口号
///
public int DevPort
{
get { return _devPort; }
set { _devPort = value; }
}
private int _websocketPort = 9090;
///
/// websocket端口号
///
public int WebsocketPort
{
get { return _websocketPort; }
set { _websocketPort = value; }
}
private string _webSocketPath = "dataMonitoring";
public string WebSocketPath
{
get { return _webSocketPath; }
set { _webSocketPath = value; }
}
private double _dataHandleInterval = 1;
public double DataHandleInterval
{
get { return _dataHandleInterval; }
set
{
_dataHandleInterval = value;
// Assuming TelemeteringResultSaveTask.SaveInterval is a valid reference in your new environment
TelemeteringResultSaveTask.SaveInterval = value * 1000;
}
}
private bool _isAutoStartup = false;
///
/// 自动启动
///
public bool IsAutoStartup
{
get { return _isAutoStartup; }
set { _isAutoStartup = value; }
}
private bool _isAuthority = true;
///
/// 权限开关
///
public bool IsAuthority
{
get { return _isAuthority; }
set { _isAuthority = value; }
}
}
}