sharee.bike-App/TINKLib/Model/Bikes/Bike/BikeExtension.cs

24 lines
558 B
C#
Raw Normal View History

2022-04-25 22:15:15 +02:00
using System;
using TINK.Model.Bike;
namespace TINK.Model.Bikes.Bike
{
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.");
}
}
}
}