mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-22 12:56:29 +02:00
Code updated to 3.0.238
This commit is contained in:
parent
3302d80678
commit
9c6a1fa92b
257 changed files with 7763 additions and 2861 deletions
|
@ -141,13 +141,17 @@ namespace TINK.Services.BluetoothLock.BLE
|
|||
|
||||
switch (lockingState.Value)
|
||||
{
|
||||
case LockitLockingState.CouldntOpenBoldBlocked:
|
||||
// Expected error. ILockIt count not be opened (Spoke blocks lock, ....)
|
||||
throw new CouldntOpenBoldBlockedException();
|
||||
|
||||
case LockitLockingState.Open:
|
||||
return lockingState.Value;
|
||||
|
||||
case LockitLockingState.CouldntOpenBoldBlocked:
|
||||
// Expected error. ILockIt count not be opened (Spoke blocks lock, ....)
|
||||
throw new CouldntOpenBoldIsBlockedException();
|
||||
|
||||
case LockitLockingState.Unknown:
|
||||
// Expected error. ILockIt count not be opened (Spoke has blocked/ blocks lock, ....)
|
||||
throw new CouldntOpenBoldWasBlockedException();
|
||||
|
||||
default:
|
||||
// Comprises values
|
||||
// - LockitLockingState.Closed
|
||||
|
|
|
@ -109,18 +109,22 @@ namespace TINK.Services.BluetoothLock.BLE
|
|||
|
||||
switch (info.State.Value)
|
||||
{
|
||||
case LockitLockingState.CouldntOpenBoldBlocked:
|
||||
// Expected error. ILockIt count not be opened (Spoke blocks lock, ....)
|
||||
throw new CouldntOpenBoldBlockedException();
|
||||
|
||||
case LockitLockingState.Open:
|
||||
return info.State.Value;
|
||||
|
||||
case LockitLockingState.CouldntOpenBoldBlocked:
|
||||
// Expected error. ILockIt count not be opened (Spoke blocks lock, ....)
|
||||
throw new CouldntOpenBoldIsBlockedException();
|
||||
|
||||
case LockitLockingState.Unknown:
|
||||
// Expected error. ILockIt count not be opened (Spoke has blocked/ blocks lock, ....)
|
||||
throw new CouldntOpenBoldWasBlockedException();
|
||||
|
||||
default:
|
||||
// Comprises values
|
||||
// - LockitLockingState.Closed
|
||||
// - LockitLockingState.Unknown
|
||||
// - LockitLockingState.CouldntOpenBoldBlocked
|
||||
// - LockitLockingState.CouldntCloseMoving (should never happen because command open was send)
|
||||
// - LockitLockingState.CouldntCloseBoldBlocked (should never happen because command open was send)
|
||||
// Internal error which sould never occure. Lock refuses to open but connection is ok.
|
||||
throw new CouldntOpenInconsistentStateExecption(info.State.Value.GetLockingState());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue