123456789101112131415161718192021222324 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace AwInitilizer.Converter
- {
- public static class PressStatusConverter
- {
- public static string ToPressString(this int from)
- {
- if(from == 0)
- {
- return "Unpress";
- }
- else if (from == 1)
- {
- return "Press";
- }
- return "Unknown";
- }
- }
- }
|