终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UpkeepMessage.cs 1.3 KiB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.KLMCoffee.Protocal
  7. {
  8. public class UpkeepMessage :BitValue
  9. {
  10. /// <summary>
  11. /// 1 冲泡器需要清洗,
  12. /// /// </summary>
  13. public bool 冲泡器需要清洗 { get; set; }
  14. /// <summary>
  15. /// 1 奶沫器需要清洗,
  16. /// /// </summary>
  17. public bool 奶沫器需要清洗 { get; set; }
  18. /// <summary>
  19. /// 1 咖啡机需要除垢,
  20. /// /// </summary>
  21. public bool 咖啡机需要除垢 { get; set; }
  22. /// <summary>
  23. /// 1 需要更换滤芯,
  24. /// /// </summary>
  25. public bool 需要更换滤芯 { get; set; }
  26. public UpkeepMessage(byte value)
  27. {
  28. 冲泡器需要清洗 = GetBitValue(value,3);
  29. 奶沫器需要清洗 = GetBitValue(value,2);
  30. 咖啡机需要除垢 = GetBitValue(value,1);
  31. 需要更换滤芯 = GetBitValue(value,0);
  32. }
  33. }
  34. }