Version 3.0.370

This commit is contained in:
Anja 2023-08-31 12:20:06 +02:00
parent f5cf9bb22f
commit bdb2dec1c1
233 changed files with 10252 additions and 6779 deletions

View file

@ -13,7 +13,7 @@ namespace TINK.Services.BluetoothLock.Exception
{
public BluetoothDisconnectedException() : base(
LockingState.UnknownDisconnected,
MultilingualResources.Resources.ErrorBluetoothDisconnectedException)
MultilingualResources.Resources.LockItExceptionBluetoothDisconnected)
{
}
}

View file

@ -10,8 +10,8 @@ namespace TINK.Services.BluetoothLock.Exception
/// </remarks>
public class ConnectBluetoothNotOnException : System.Exception
{
public ConnectBluetoothNotOnException() : base(Resources.ErrorConnectLockBluetoothOffException) { }
public ConnectBluetoothNotOnException() : base(Resources.LockItExceptionConnectLockBluetoothOffException) { }
public ConnectBluetoothNotOnException(object state) : base(string.Format(Resources.ErrorConnectLockBluetoothNotOnException, state.ToString())) { }
public ConnectBluetoothNotOnException(object state) : base(string.Format(Resources.LockItExceptionConnectLockBluetoothNotOnException, state.ToString())) { }
}
}

View file

@ -4,6 +4,6 @@ namespace TINK.Services.BluetoothLock.Exception
{
public class ConnectLocationOffException : System.Exception
{
public ConnectLocationOffException() : base(Resources.ErrorConnectLockLocationOffException) { }
public ConnectLocationOffException() : base(Resources.LockItExceptionConnectLockLocationOffException) { }
}
}

View file

@ -4,6 +4,6 @@ namespace TINK.Services.BluetoothLock.Exception
{
public class ConnectLocationPermissionMissingException : System.Exception
{
public ConnectLocationPermissionMissingException() : base(Resources.ErrorConnectLockLocationPermissingMissingException) { }
public ConnectLocationPermissionMissingException() : base(Resources.LockItExceptionConnectLockLocationPermissingMissingException) { }
}
}

View file

@ -2,7 +2,7 @@ using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
namespace TINK.Services.BluetoothLock.Exception
{
public class CouldntCloseBoldBlockedException : StateAwareException
public class CouldntCloseBoltBlockedException : StateAwareException
{
/// <summary>
/// Constructs a bold blocked exception.
@ -13,9 +13,9 @@ namespace TINK.Services.BluetoothLock.Exception
/// <param name="state">State of the lock while/ after bold blocked event.</param>
/// <remarks>
/// </remarks>
public CouldntCloseBoldBlockedException(LockingState state = LockingState.UnknownFromHardwareError) : base(
public CouldntCloseBoltBlockedException(LockingState state = LockingState.UnknownFromHardwareError) : base(
state,
MultilingualResources.Resources.ErrorCloseLockBoldBlocked)
MultilingualResources.Resources.LockItExceptionCloseLockBoltBlocked)
{
}
}

View file

@ -1,4 +1,4 @@

using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
using TINK.MultilingualResources;
@ -10,8 +10,8 @@ namespace TINK.Services.BluetoothLock.Exception
base(
state,
state != LockingState.UnknownFromHardwareError
? string.Format(Resources.ErrorCloseLockUnexpectedState, state)
: Resources.ErrorCloseLockUnknownPosition)
? string.Format(Resources.LockItExceptionCloseLockUnexpectedLockState, state)
: Resources.LockItExceptionCloseLockUnknownPosition)
{
}
}

View file

@ -1,4 +1,4 @@
using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
namespace TINK.Services.BluetoothLock.Exception
{
@ -6,7 +6,7 @@ namespace TINK.Services.BluetoothLock.Exception
{
public CouldntCloseMovingException() : base(
LockingState.Open, // Locking bold is probable (according to haveltec) still open.
MultilingualResources.Resources.ErrorCloseLockBikeMoving)
MultilingualResources.Resources.LockItExceptionCloseLockMoving)
{
}
}

View file

@ -9,7 +9,7 @@ namespace TINK.Services.BluetoothLock.Exception
{
public CouldntOpenBoldIsBlockedException() : base(
LockingState.UnknownFromHardwareError,
MultilingualResources.Resources.ErrorOpenLockBoldIsBlocked)
MultilingualResources.Resources.LockItExceptionOpenLockBoltBlocked)
{
}
}

View file

@ -9,7 +9,7 @@ namespace TINK.Services.BluetoothLock.Exception
{
public CouldntOpenBoldStatusIsUnknownException() : base(
LockingState.UnknownFromHardwareError,
MultilingualResources.Resources.ErrorOpenLockBoldStatusIsUnknown)
MultilingualResources.Resources.LockItExceptionOpenLockBoldStatusIsUnknown)
{
}
}

View file

@ -1,4 +1,4 @@

using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
using TINK.MultilingualResources;
@ -9,7 +9,7 @@ namespace TINK.Services.BluetoothLock.Exception
public CouldntOpenInconsistentStateExecption(LockingState state) :
base(
state,
string.Format(Resources.ErrorOpenLockUnexpectedState, state))
string.Format(Resources.LockItExceptionOpenLockUnexpectedState, state))
{
}
}

View file

@ -1,7 +1,7 @@
namespace TINK.Services.BluetoothLock.Exception
namespace TINK.Services.BluetoothLock.Exception
{
/// <summary> Thrown whenever lock is out of reach.</summary>
/// <remarks> If fired when scan for devices does not result in lock beeing found.</remarks>
/// <remarks> If fired when scan for devices does not result in lock being found.</remarks>
public class OutOfReachException : System.Exception
{
}

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using TINK.Services.BluetoothLock.Tdo;
@ -42,12 +42,12 @@ namespace TINK.Model.Bikes.BikeInfoNS.BluetoothLock
switch (lockingState)
{
case LockitLockingState.Unknown:
case LockitLockingState.CouldntOpenBoldBlocked: // Lock is closed in most cases, but this is not guarnteed according to haveltec.
case LockitLockingState.CouldntOpenBoltBlocked: // Lock is closed in most cases, but this is not guaranteed according to haveltec.
return LockingState.UnknownFromHardwareError;
case LockitLockingState.Open:
case LockitLockingState.CouldntCloseMoving:
case LockitLockingState.CouldntCloseBoldBlocked:
case LockitLockingState.CouldntCloseBoltBlocked:
return LockingState.Open;
case LockitLockingState.Closed:

View file

@ -13,9 +13,9 @@ namespace TINK.Services.BluetoothLock.Tdo
CouldntCloseMoving = 0x03,
CouldntOpenBoldBlocked = 0x04,
CouldntOpenBoltBlocked = 0x04,
CouldntCloseBoldBlocked = 0x05
CouldntCloseBoltBlocked = 0x05
}
/// <summary> Object holding info about bluetooth lock. </summary>