PressStatusConverter.cs 526 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace AwInitilizer.Converter
  7. {
  8. public static class PressStatusConverter
  9. {
  10. public static string ToPressString(this int from)
  11. {
  12. if(from == 0)
  13. {
  14. return "Unpress";
  15. }
  16. else if (from == 1)
  17. {
  18. return "Press";
  19. }
  20. return "Unknown";
  21. }
  22. }
  23. }