mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 23:01:52 +01:00
25 lines
461 B
C#
25 lines
461 B
C#
using System;
|
|
|
|
namespace FabAccessAPI
|
|
{
|
|
public enum Mechanism
|
|
{
|
|
PLAIN,
|
|
}
|
|
|
|
public static class MechanismString
|
|
{
|
|
public static string ToString(Mechanism mechanism)
|
|
{
|
|
switch(mechanism)
|
|
{
|
|
case Mechanism.PLAIN:
|
|
return "PLAIN";
|
|
default:
|
|
throw new ArgumentException("Mechanism not known.");
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|