2022-04-01 17:03:54 +08:00
|
|
|
|
#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]
|
2022-12-16 13:01:24 +08:00
|
|
|
|
public class Configurations
|
2022-04-01 17:03:54 +08:00
|
|
|
|
{
|
|
|
|
|
[XmlIgnore]
|
2022-12-16 13:01:24 +08:00
|
|
|
|
public static Configurations conf { get; set; }
|
2022-04-01 17:03:54 +08:00
|
|
|
|
public ConnectSetting connectSetting { get; set; }
|
2022-12-16 13:01:24 +08:00
|
|
|
|
public EAPMonitorSetting eapMonitorSetting { get; set; }
|
2022-04-01 17:03:54 +08:00
|
|
|
|
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; }
|
2022-12-16 13:01:24 +08:00
|
|
|
|
public Configurations()
|
2022-04-01 17:03:54 +08:00
|
|
|
|
{
|
|
|
|
|
connectSetting = new ConnectSetting();
|
2022-12-16 13:01:24 +08:00
|
|
|
|
eapMonitorSetting = new EAPMonitorSetting();
|
2022-04-01 17:03:54 +08:00
|
|
|
|
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; }
|
2023-02-23 11:33:23 +08:00
|
|
|
|
[XmlAttribute]
|
|
|
|
|
public string equipmentName1 { get; set; }
|
|
|
|
|
[XmlAttribute]
|
|
|
|
|
public string equipmentName2 { get; set; }
|
2022-04-01 17:03:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
2022-12-16 13:01:24 +08:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class EAPMonitorSetting
|
|
|
|
|
{
|
|
|
|
|
[XmlAttribute]
|
|
|
|
|
public string IPAddress { get; set; }
|
|
|
|
|
[XmlAttribute]
|
|
|
|
|
public string Port { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-01 17:03:54 +08:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class HttpConfiguration
|
|
|
|
|
{
|
|
|
|
|
public string heartBitUrl { get; set; }
|
|
|
|
|
public string fileDownloadUrl { get; set; }
|
|
|
|
|
public string contentType { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|