dc/Common/Configuration.cs
13118993771@163.com 562bd7a7b8 新版
2023-02-23 11:33:23 +08:00

89 рядки
2.7 KiB
C#

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#region << >>
/*----------------------------------------------------------------
* 创建者Hupe
* 创建时间2021/11/15 15:15:17
* 版本V1.0.0
* 描述:
*
* ----------------------------------------------------------------
* 修改人:
* 时间:
* 修改说明:
*
* 版本V1.0.1
*----------------------------------------------------------------*/
#endregion << >>
using ARI.EAP.HOST.MQ;
using Glorysoft.SECS.EQP;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace ARI.EAP.HOST.SRD
{
/// <summary>
/// Configuration 的摘要说明
/// xml配置文件的实体类
/// </summary>
[Serializable]
public class Configurations
{
[XmlIgnore]
public static Configurations conf { get; set; }
public ConnectSetting connectSetting { get; set; }
public EAPMonitorSetting eapMonitorSetting { get; set; }
public MQConnectionCfg mQConnectionCfg { get; set; }
public HttpConfiguration httpConfiguration { get; set; }
public ScenarioCollection scenarioCollection { get; set; }
public CommandContentCollection commandContentCollection { get; set; }
public SRDConfiguration sRDConfiguration { get; set; }
public Configurations()
{
connectSetting = new ConnectSetting();
eapMonitorSetting = new EAPMonitorSetting();
mQConnectionCfg = new MQConnectionCfg();
httpConfiguration = new HttpConfiguration();
scenarioCollection = new ScenarioCollection();
sRDConfiguration = new SRDConfiguration();
commandContentCollection = new CommandContentCollection();
}
}
[Serializable]
public class ConnectSetting
{
[XmlAttribute]
public string name { get; set; }
[XmlAttribute]
public string deviceId { get; set; }
[XmlAttribute]
public string remoteIp { get; set; }
[XmlAttribute]
public string remotePort { get; set; }
[XmlAttribute]
public string equipmentName1 { get; set; }
[XmlAttribute]
public string equipmentName2 { get; set; }
}
[Serializable]
public class EAPMonitorSetting
{
[XmlAttribute]
public string IPAddress { get; set; }
[XmlAttribute]
public string Port { get; set; }
}
[Serializable]
public class HttpConfiguration
{
public string heartBitUrl { get; set; }
public string fileDownloadUrl { get; set; }
public string contentType { get; set; }
}
}