sharee.bike-App/SharedBusinessLogic/Model/Bikes/BikeInfoNS/BikeNS/BikeExtension.cs
2024-04-09 12:53:23 +02:00

23 lines
419 B
C#

using System;
namespace ShareeBike.Model.Bikes.BikeInfoNS.BikeNS
{
public static class BikeExtension
{
public static LockType GetLockType(this LockModel model)
{
switch (model)
{
case LockModel.ILockIt:
return LockType.Bluethooth;
case LockModel.Sigo:
return LockType.Backend;
default:
throw new ArgumentException($"Unsupported lock model {model} detected.");
}
}
}
}