RobotNet/RobotNet.RobotShares/OpenACS/TrafficRequestType.cs
2025-10-15 15:15:53 +07:00

20 lines
386 B
C#

namespace RobotNet.RobotShares.OpenACS;
public enum TrafficRequestType
{
IN,
OUT,
}
public static class EnumExtensions
{
public static string ToInOutString(this TrafficRequestType type)
{
return type switch
{
TrafficRequestType.IN => "in",
TrafficRequestType.OUT => "out",
_ => type.ToString()
};
}
}