mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-15 22:56:37 +01:00
18 lines
655 B
C#
18 lines
655 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Plugin.BLE.Abstractions.Contracts;
|
|
using TINK.Model.Device;
|
|
|
|
namespace TINK.Services.BluetoothLock.BLE
|
|
{
|
|
public class LockItByScanServiceEventBased : LockItByScanServiceBase, ILocksService
|
|
{
|
|
public LockItByScanServiceEventBased(ICipher cipher, IBluetoothLE bluetoothLE, Func<Task<bool>> isLocationPermissionMissingDelegate, Func<bool> isLocationRequiredAndOffDelegate) : base(
|
|
cipher,
|
|
(bleDevice, authInfo, adapter) => LockItEventBased.Authenticate(bleDevice, authInfo, adapter, cipher),
|
|
bluetoothLE,
|
|
isLocationPermissionMissingDelegate,
|
|
isLocationRequiredAndOffDelegate)
|
|
{ }
|
|
}
|
|
}
|