sharee.bike-App/SharedBusinessLogic/Model/Bikes/BikeInfoNS/BikeNS/BikeExtension.cs

23 lines
419 B
C#
Raw Permalink Normal View History

2022-04-25 22:15:15 +02:00
using System;
2024-04-09 12:53:23 +02:00
namespace ShareeBike.Model.Bikes.BikeInfoNS.BikeNS
2022-04-25 22:15:15 +02:00
{
2022-09-06 16:08:19 +02:00
public static class BikeExtension
{
public static LockType GetLockType(this LockModel model)
{
switch (model)
{
case LockModel.ILockIt:
return LockType.Bluethooth;
2022-04-25 22:15:15 +02:00
2022-09-06 16:08:19 +02:00
case LockModel.Sigo:
return LockType.Backend;
2022-04-25 22:15:15 +02:00
2022-09-06 16:08:19 +02:00
default:
throw new ArgumentException($"Unsupported lock model {model} detected.");
}
}
}
2022-04-25 22:15:15 +02:00
}