2022-04-25 22:15:15 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
2022-08-30 15:42:25 +02:00
|
|
|
|
namespace TINK.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
|
|
|
|
}
|