Ejemplo n.º 1
0
 public Descriptor(BluetoothGattDescriptor nativeDescriptor, BluetoothGatt gatt, IGattCallback gattCallback,
                   ICharacteristic characteristic) : base(characteristic)
 {
     this._gattCallback     = gattCallback;
     this._gatt             = gatt;
     this._nativeDescriptor = nativeDescriptor;
 }
        public Characteristic(BluetoothGattCharacteristic nativeCharacteristic, BluetoothGatt gatt, IGattCallback gattCallback, Service service) : this(service)
        {
            NativeCharacteristic = nativeCharacteristic;

            _gatt         = gatt;
            _gattCallback = gattCallback;
        }
Ejemplo n.º 3
0
        public Descriptor(BluetoothGattDescriptor nativeDescriptor, BluetoothGatt gatt, IGattCallback gattCallback)
        {
            _gattCallback = gattCallback;
            _gatt         = gatt;

            _nativeDescriptor = nativeDescriptor;
        }
Ejemplo n.º 4
0
 public Characteristic(BluetoothGattCharacteristic nativeCharacteristic, BluetoothGatt gatt,
     IGattCallback gattCallback)
 {
     _nativeCharacteristic = nativeCharacteristic;
     _gatt = gatt;
     _gattCallback = gattCallback;
 }
        internal Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback gattCallback, Device device) : this(device)
        {
            NativeService = nativeService;

            _gatt         = gatt;
            _gattCallback = gattCallback;
        }
Ejemplo n.º 6
0
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback gattCallback,
                IDevice device) : base(device)
 {
     this._nativeService = nativeService;
     this._gatt          = gatt;
     this._gattCallback  = gattCallback;
 }
Ejemplo n.º 7
0
 public Characteristic(BluetoothGattCharacteristic nativeCharacteristic, BluetoothGatt gatt,
                       IGattCallback gattCallback, IService service) : base(service)
 {
     _nativeCharacteristic = nativeCharacteristic;
     _gatt         = gatt;
     _gattCallback = gattCallback;
 }
        public Descriptor(BluetoothGattDescriptor nativeDescriptor, BluetoothGatt gatt, IGattCallback gattCallback, Characteristic characteristic) : this(characteristic)
        {
            NativeDescriptor = nativeDescriptor;

            _gattCallback = gattCallback;
            _gatt         = gatt;
        }
Ejemplo n.º 9
0
        public Descriptor(BluetoothGattDescriptor nativeDescriptor, BluetoothGatt gatt, IGattCallback gattCallback)
        {
            _gattCallback = gattCallback;
            _gatt = gatt;

            _nativeDescriptor = nativeDescriptor;
        }
Ejemplo n.º 10
0
 public Characteristic(BluetoothGattCharacteristic nativeCharacteristic, BluetoothGatt gatt,
                       IGattCallback gattCallback)
 {
     _nativeCharacteristic = nativeCharacteristic;
     _gatt         = gatt;
     _gattCallback = gattCallback;
 }
Ejemplo n.º 11
0
 public void Update(BluetoothDevice nativeDevice, BluetoothGatt gatt,
                    IGattCallback gattCallback)
 {
     _nativeDevice = nativeDevice;
     _gatt         = gatt;
     _gattCallback = gattCallback;
 }
Ejemplo n.º 12
0
 public void Update(BluetoothDevice nativeDevice, BluetoothGatt gatt,
     IGattCallback gattCallback)
 {
     _nativeDevice = nativeDevice;
     _gatt = gatt;
     _gattCallback = gattCallback;
 }
Ejemplo n.º 13
0
        public Device(BluetoothDevice nativeDevice, BluetoothGatt gatt, IGattCallback gattCallback, int rssi, byte[] advertisementData = null)
            : base()
        {
            Update(nativeDevice, gatt, gattCallback);
            this._rssi = rssi;

            _advertisementData = advertisementData ?? new byte[0];
        }
Ejemplo n.º 14
0
        public Device(BluetoothDevice nativeDevice, BluetoothGatt gatt, IGattCallback gattCallback, int rssi, byte[] advertisementData = null)
            : base()
        {
            Update(nativeDevice, gatt, gattCallback);
            this._rssi = rssi;

            _advertisementData = advertisementData ?? new byte[0];
        }
Ejemplo n.º 15
0
        public void Update(BluetoothDevice nativeDevice, BluetoothGatt gatt, IGattCallback gattCallback)
        {
            _nativeDevice = nativeDevice;
            _gatt = gatt;
            _gattCallback = gattCallback;

            Id = ParseDeviceId();
            Name = _nativeDevice.Name;
        }
Ejemplo n.º 16
0
        public void Update(BluetoothDevice nativeDevice, BluetoothGatt gatt, IGattCallback gattCallback)
        {
            _nativeDevice = nativeDevice;
            _gatt         = gatt;
            _gattCallback = gattCallback;

            Id   = ParseDeviceId();
            Name = _nativeDevice.Name;
        }
Ejemplo n.º 17
0
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback _gattCallback)
 {
     this._nativeService = nativeService;
     this._gatt          = gatt;
     this._gattCallback  = _gattCallback;
 }
Ejemplo n.º 18
0
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback gattCallback)
 {
     _nativeService = nativeService;
     _gatt = gatt;
     _gattCallback = gattCallback;
 }
Ejemplo n.º 19
0
 public Device(Adapter adapter, BluetoothDevice nativeDevice, BluetoothGatt gatt, IGattCallback gattCallback, int rssi, byte[] advertisementData = null) : base(adapter)
 {
     Update(nativeDevice, gatt, gattCallback);
     Rssi = rssi;
     AdvertisementRecords = ParseScanRecord(advertisementData);
 }
Ejemplo n.º 20
0
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback gattCallback)
 {
     _nativeService = nativeService;
     _gatt          = gatt;
     _gattCallback  = gattCallback;
 }
Ejemplo n.º 21
0
 public Device(Adapter adapter, BluetoothDevice nativeDevice, BluetoothGatt gatt, IGattCallback gattCallback, int rssi, byte[] advertisementData = null) : base(adapter)
 {
     Update(nativeDevice, gatt, gattCallback);
     Rssi = rssi;
     AdvertisementRecords = ParseScanRecord(advertisementData);
 }