61 lines
1.4 KiB
C#
61 lines
1.4 KiB
C#
#region << 版 本 注 释 >>
|
||
/*----------------------------------------------------------------
|
||
* 创建者:13118
|
||
* 创建时间:2021/12/28 14:29:42
|
||
* 版本:V1.0.0
|
||
* 描述:
|
||
*
|
||
* ----------------------------------------------------------------
|
||
* 修改人:
|
||
* 时间:
|
||
* 修改说明:
|
||
*
|
||
* 版本:V1.0.1
|
||
*----------------------------------------------------------------*/
|
||
#endregion << 版 本 注 释 >>
|
||
|
||
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>
|
||
/// CommandContent 的摘要说明
|
||
/// 指令内容实体类
|
||
/// </summary>
|
||
[Serializable]
|
||
public class CommandContent
|
||
{
|
||
[XmlAttribute]
|
||
public string name { get; set; }
|
||
|
||
public List<string> content;
|
||
|
||
public CommandContent() => content = new List<string>();
|
||
|
||
}
|
||
|
||
[Serializable]
|
||
public class CommandContentCollection
|
||
{
|
||
public List<CommandContent> commandContents { get; set; }
|
||
|
||
public CommandContentCollection() => commandContents = new List<CommandContent>();
|
||
|
||
public CommandContent findContent(string sfName)
|
||
{
|
||
foreach(CommandContent c in commandContents)
|
||
{
|
||
if (c.name.Equals(sfName))
|
||
{
|
||
return c;
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
}
|
||
} |