Révision 91ef3e8c TestTeoBluetooth/TestTeoBluetooth/Services/IBluetoothService.cs
TestTeoBluetooth/TestTeoBluetooth/Services/IBluetoothService.cs | ||
---|---|---|
3 | 3 |
using System.Collections.ObjectModel; |
4 | 4 |
using System.Text; |
5 | 5 |
using System.Threading.Tasks; |
6 |
using TeoTestBluetooth.Models;
|
|
6 |
using TestXamConnections.Models;
|
|
7 | 7 |
|
8 |
namespace TeoTestBluetooth.Services
|
|
8 |
namespace TestXamConnections.Services
|
|
9 | 9 |
{ |
10 | 10 |
public interface IBluetoothService |
11 | 11 |
{ |
12 |
Task StartScan(); |
|
13 |
Task<bool> Pair(Device bluetoothDevice); |
|
14 |
Task<bool> Connect(Device bluetoothDevice); |
|
15 |
Task<bool> Disconnect(Device bluetoothDevice); |
|
16 |
Task<bool> SendHexValues(byte[] hexValues); |
|
17 | 12 |
ICollection<Device> GetBondedDevices(); |
18 |
EventHandler<string> DataReceivedEvent { get; set; } |
|
19 |
ObservableCollection<Device> DeviceList { get; set; } |
|
20 | 13 |
} |
21 | 14 |
} |
Formats disponibles : Unified diff