RuleFocusModel.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Serialization;
  7. namespace PaintDotNet.Base.SettingModel
  8. {
  9. /// <summary>
  10. /// 聚焦参数
  11. /// </summary>
  12. [XmlRoot("ROOT")]
  13. public class RuleFocusModel
  14. {
  15. /// <summary>
  16. /// 标尺主键-聚焦参数
  17. /// </summary>
  18. [XmlElement("ModelList")]
  19. public List<RuleFocusDetailsModel> ModelList { get; set; }
  20. public class RuleFocusDetailsModel
  21. {
  22. public RuleFocusDetailsModel()
  23. {
  24. TimeLag = 100;
  25. StepLength = 100;
  26. }
  27. public RuleFocusDetailsModel(int id, string name) : this()
  28. {
  29. RuleId = id;
  30. RuleName = name;
  31. }
  32. /// <summary>
  33. /// 标尺主键-聚焦参数
  34. /// </summary>
  35. [XmlElement("RuleId")]
  36. public int RuleId { get; set; }
  37. /// <summary>
  38. /// 时间间隔-聚焦参数
  39. /// </summary>
  40. [XmlElement("RuleName")]
  41. public string RuleName { get; set; }
  42. /// <summary>
  43. /// 时间间隔-聚焦参数
  44. /// </summary>
  45. [XmlElement("TimeLag")]
  46. public int TimeLag { get; set; }
  47. /// <summary>
  48. /// 步长-聚焦参数
  49. /// </summary>
  50. [XmlElement("StepLength")]
  51. public double StepLength { get; set; }
  52. }
  53. }
  54. }