mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 23:56:26 +01:00
22 lines
413 B
C#
22 lines
413 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.");
|
|
}
|
|
}
|
|
}
|
|
}
|