sharee.bike-App/TINKLib/Model/Bikes/BikeInfoNS/BikeNS/BikeExtension.cs
Anja Müller-Meißner 573fe77e12 Version 3.0.337
2022-08-30 15:42:25 +02:00

22 lines
548 B
C#

using System;
namespace TINK.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.");
}
}
}
}