DrawLineMessage.cs 998 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Ips.Sps.TskResults.Commands
  7. {
  8. public class DrawLineMessage
  9. {
  10. public DrawLineMessage()
  11. {
  12. }
  13. public long PosId { get; private set; }
  14. public long PesId { get; private set; }
  15. public bool UseRef { get; private set; }
  16. public bool DfoLine { get; private set; }
  17. public static DrawLineMessage CreateByPos(long posId, bool useRef)
  18. {
  19. DrawLineMessage cmd = new DrawLineMessage();
  20. cmd.PosId = posId;
  21. cmd.UseRef = useRef;
  22. return cmd;
  23. }
  24. public static DrawLineMessage CreateByPes(long pesId, bool useRef, bool dfoLine = false)
  25. {
  26. DrawLineMessage cmd = new DrawLineMessage();
  27. cmd.PesId = pesId;
  28. cmd.UseRef = useRef;
  29. cmd.DfoLine = dfoLine;
  30. return cmd;
  31. }
  32. }
  33. }