dc/SRD/CommandContent.cs

61 lines
1.4 KiB
C#
Raw Permalink Normal View History

2022-04-01 17:03:54 +08:00
#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;
}
}
}