using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace PaintDotNet.Base.SettingModel { /// /// 聚焦参数 /// [XmlRoot("ROOT")] public class RuleFocusModel { /// /// 标尺主键-聚焦参数 /// [XmlElement("ModelList")] public List ModelList { get; set; } public class RuleFocusDetailsModel { public RuleFocusDetailsModel() { TimeLag = 100; StepLength = 100; } public RuleFocusDetailsModel(int id, string name) : this() { RuleId = id; RuleName = name; } /// /// 标尺主键-聚焦参数 /// [XmlElement("RuleId")] public int RuleId { get; set; } /// /// 时间间隔-聚焦参数 /// [XmlElement("RuleName")] public string RuleName { get; set; } /// /// 时间间隔-聚焦参数 /// [XmlElement("TimeLag")] public int TimeLag { get; set; } /// /// 步长-聚焦参数 /// [XmlElement("StepLength")] public double StepLength { get; set; } } } }