borepin/FabAccessAPI/Mechanism.cs

25 lines
461 B
C#
Raw Normal View History

2022-05-11 15:02:17 +02:00
using System;
namespace FabAccessAPI
2022-05-10 13:35:23 +02:00
{
public enum Mechanism
{
2022-05-11 15:02:17 +02:00
PLAIN,
2022-05-10 13:35:23 +02:00
}
2022-05-11 15:02:17 +02:00
public static class MechanismString
{
public static string ToString(Mechanism mechanism)
{
switch(mechanism)
{
case Mechanism.PLAIN:
return "PLAIN";
default:
throw new ArgumentException("Mechanism not known.");
}
}
}
2022-05-10 13:35:23 +02:00
}