first commit -push
This commit is contained in:
20
RobotNet.RobotShares/OpenACS/TrafficRequestType.cs
Normal file
20
RobotNet.RobotShares/OpenACS/TrafficRequestType.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user