You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

103 lines
2.5 KiB

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
/// <summary>
/// 自动关闭预警窗体
/// </summary>
/// <returns></returns>
public static bool? AutoWarningClose()
{
return GetValueInt("AutoWarningClose") == 1;
}
/// <summary>
/// AI 检索
/// </summary>
/// <returns></returns>
public static bool? VideoAIDetection()
{
return GetValueInt("VideoAIDetection") == 1;
}
/// <summary>
/// WebSocketSvrPort
/// </summary>
/// <returns></returns>
public static int WebSocketSvrPort()
{
return GetValueInt("WebSocketSvrPort");
}
public static string APIServer()
{
return GetValue("APIServer");
}
/// <summary>
/// 可选初始窗体图标 0:(1个窗体),1:4个窗体, 2:9个窗体
/// </summary>
/// <returns></returns>
public static int MainBarButtonSelectedIndex()
{
return GetValueInt("MainBarButtonSelectedIndex");
}
public static string AIInputPath()
{
return GetValue("AIInputPath");
}
public static string AIOutPath()
{
return GetValue("AIOutPath");
}
#endregion
#region ZMQ 配置
/// 发布地址
/// </summary>
/// <returns></returns>
public static string PUBServer()
{
return GetMQValue("PUBServer");
}
/// <summary>
/// 订阅地址
/// </summary>
/// <returns></returns>
public static string SUBServer()
{
return GetMQValue("SUBServer");
}
//AI服务地址
public static string AISvrServer()
{
return GetMQValue("AISvrServer");
}
/// <summary>
/// AI图片数据订阅 地址
/// </summary>
/// <returns></returns>
public static string SUBImageServer()
{
return GetMQValue("SUBImageServer");
}
#endregion
/// <summary>
/// 数据库服务地址
/// </summary>
/// <returns></returns>
public static string DBSvrServer()
{
return GetMQValue("DBSvrServer");
}
}
}