mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-22 12:56:29 +02:00
3.0.275
This commit is contained in:
parent
f38b516d25
commit
578fcee611
70 changed files with 6828 additions and 9625 deletions
|
@ -42,9 +42,11 @@ namespace TINK.Services.BluetoothLock
|
|||
/// <param name="doWaitRetry">True if to wait and retry in case of failures. </param>
|
||||
/// <returns></returns>
|
||||
Task<LockInfoTdo> GetLockStateAsync(bool doWaitRetry = false);
|
||||
|
||||
|
||||
Task<bool> SetSoundAsync(SoundSettings settings);
|
||||
|
||||
Task<bool> SetAlarmSettingsAsync(AlarmSettings settings);
|
||||
|
||||
Task<bool> GetIsAlarmOffAsync();
|
||||
|
||||
Task SetIsAlarmOffAsync(bool isActivated);
|
||||
|
|
|
@ -36,23 +36,32 @@ namespace TINK.Services.BluetoothLock
|
|||
Task<LockingState> DisconnectAsync(int bikeId, Guid bikeGuid);
|
||||
}
|
||||
|
||||
/// <summary> Alarm types types. </summary>
|
||||
/// <remarks> Api-doc v29.0 </remarks>
|
||||
public enum AlarmSettings
|
||||
{
|
||||
SmallSensivity = 2,
|
||||
SmallSensivitySilent = 3,
|
||||
SmallSensitivityPrealarm = 22,
|
||||
MediumSensivity = 4,
|
||||
MediumSensivitySilent = 0x05,
|
||||
MediumSensivityPrealarm = 0x24,
|
||||
HightestSensivity = 0x10,
|
||||
HightestSensivitySilent = 0x11,
|
||||
HightestSensivityPrealarm = 0x30,
|
||||
}
|
||||
|
||||
/// <summary> Sound types. </summary>
|
||||
/// <remarks>
|
||||
/// 1. Locking process started: One long beep.
|
||||
/// 2. Unlocking successful: One short beep.
|
||||
/// 3. Bike moved while trying to lock: Three short beeps.
|
||||
/// 4. Locking bolt blocked while locking: Three short beeps.
|
||||
/// 5. Unable to unlock because locking bolt is blocked: Three short beeps.
|
||||
/// </remarks>
|
||||
/// <remarks> Api-doc v29.0 </remarks>
|
||||
public enum SoundSettings
|
||||
{
|
||||
AllButOpenedSuccessfully, // Sounds: 1, 3, 4, 5
|
||||
MovingBlocked = 1, // Sounds: 3, 4, 5
|
||||
LockingStarted = 2, // Sounds: 1
|
||||
AllOff = 3, // Mute
|
||||
OpenedSuccessfully = 4, // Sounds: 2
|
||||
LockingStartedOpenedSuccessfully = 5, // Sounds: 1, 2
|
||||
AllOn = 6, // All sounds on
|
||||
AllButLockingStarted = 7, // Sounds: 2, 3, 4, 5
|
||||
OnLockingStartedWarn = 0x00,
|
||||
Warn = 0x01,
|
||||
LockingStarted = 0x02,
|
||||
AllOff = 0x03, // Mute
|
||||
OpenedSuccessfully = 0x04,
|
||||
LockingStartedOpenedSuccessfully = 0x05,
|
||||
AllOn = 0x06, // All sounds on
|
||||
OpenedSuccessfullyWarn = 0x07,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,9 @@ namespace TINK.Services.BluetoothLock
|
|||
public async Task<bool> SetSoundAsync(SoundSettings settings) =>
|
||||
await Task.FromResult(false);
|
||||
|
||||
public async Task<bool> SetAlarmSettingsAsync(AlarmSettings settings) =>
|
||||
await Task.FromResult(false);
|
||||
|
||||
/// <summary> Disconnect from bluetooth lock. </summary>
|
||||
public Task Disconnect() =>
|
||||
throw new NotImplementedException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue