sharee.bike-App/LockIt.BLE/Services/BluetoothLock/BLE/LockItByScanServicePolling.cs
2024-04-09 12:53:23 +02:00

18 lines
658 B
C#

using System;
using System.Threading.Tasks;
using Plugin.BLE.Abstractions.Contracts;
using ShareeBike.Model.Device;
namespace ShareeBike.Services.BluetoothLock.BLE
{
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)
{ }
}
}