using EC.Utils.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECMonitor
{
public class ConfigHelper : ConfigurationHelper
{
#region
///
/// 自动关闭预警窗体
///
///
public static bool? AutoWarningClose()
{
return GetValueInt("AutoWarningClose") == 1;
}
///
/// AI 检索
///
///
public static bool? VideoAIDetection()
{
return GetValueInt("VideoAIDetection") == 1;
}
///
/// WebSocketSvrPort
///
///
public static int WebSocketSvrPort()
{
return GetValueInt("WebSocketSvrPort");
}
public static string APIServer()
{
return GetValue("APIServer");
}
///
/// 可选初始窗体图标 0:(1个窗体),1:4个窗体, 2:9个窗体
///
///
public static int MainBarButtonSelectedIndex()
{
return GetValueInt("MainBarButtonSelectedIndex");
}
public static string AIInputPath()
{
return GetValue("AIInputPath");
}
public static string AIOutPath()
{
return GetValue("AIOutPath");
}
#endregion
#region ZMQ 配置
/// 发布地址
///
///
public static string PUBServer()
{
return GetMQValue("PUBServer");
}
///
/// 订阅地址
///
///
public static string SUBServer()
{
return GetMQValue("SUBServer");
}
//AI服务地址
public static string AISvrServer()
{
return GetMQValue("AISvrServer");
}
///
/// AI图片数据订阅 地址
///
///
public static string SUBImageServer()
{
return GetMQValue("SUBImageServer");
}
#endregion
///
/// 数据库服务地址
///
///
public static string DBSvrServer()
{
return GetMQValue("DBSvrServer");
}
}
}