dc/SRD/CommandContent.cs
13118993771@163.com 5e9d0f1e2d EAP
2022-04-01 17:03:54 +08:00

61 lines
1.4 KiB
C#
Raw Permalink Blame History

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 << >>
/*----------------------------------------------------------------
* 创建者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;
}
}
}