sharee.bike-App/LockIt.BLE/Services/BluetoothLock/BLE/LockItByScanServicePolling.cs

19 lines
658 B
C#
Raw Permalink Normal View History

2022-08-30 15:42:25 +02:00
using System;
2022-04-10 17:38:34 +02:00
using System.Threading.Tasks;
2022-08-30 15:42:25 +02:00
using Plugin.BLE.Abstractions.Contracts;
2024-04-09 12:53:23 +02:00
using ShareeBike.Model.Device;
2021-05-13 17:25:46 +02:00
2024-04-09 12:53:23 +02:00
namespace ShareeBike.Services.BluetoothLock.BLE
2021-05-13 17:25:46 +02:00
{
2022-09-06 16:08:19 +02:00
public class LockItByScanServicePolling : LockItByScanServiceBase, ILocksService
{
public LockItByScanServicePolling(ICipher cipher, IBluetoothLE bluetoothLE, Func<Task<bool>> isLocationPermissionMissingDelegate, Func<bool> isLocationRequiredAndOffDelegate) : base(
cipher,
(bleDevice, authInfo, adapter) => LockItPolling.Authenticate(bleDevice, authInfo, adapter, cipher),
bluetoothLE,
isLocationPermissionMissingDelegate,
isLocationRequiredAndOffDelegate)
{ }
}
2021-05-13 17:25:46 +02:00
}