Esempio 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;
        }
        public Descriptor(BluetoothGattDescriptor nativeDescriptor, BluetoothGatt gatt, IGattCallback gattCallback)
        {
            _gattCallback = gattCallback;
            _gatt         = gatt;

            _nativeDescriptor = nativeDescriptor;
        }
 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;
        }
Esempio n. 6
0
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback gattCallback,
                IDevice device) : base(device)
 {
     this._nativeService = nativeService;
     this._gatt          = gatt;
     this._gattCallback  = gattCallback;
 }
Esempio 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;
        }
Esempio n. 9
0
        public Descriptor(BluetoothGattDescriptor nativeDescriptor, BluetoothGatt gatt, IGattCallback gattCallback)
        {
            _gattCallback = gattCallback;
            _gatt = gatt;

            _nativeDescriptor = nativeDescriptor;
        }
Esempio n. 10
0
 public Characteristic(BluetoothGattCharacteristic nativeCharacteristic, BluetoothGatt gatt,
                       IGattCallback gattCallback)
 {
     _nativeCharacteristic = nativeCharacteristic;
     _gatt         = gatt;
     _gattCallback = gattCallback;
 }
Esempio n. 11
0
 public void Update(BluetoothDevice nativeDevice, BluetoothGatt gatt,
                    IGattCallback gattCallback)
 {
     _nativeDevice = nativeDevice;
     _gatt         = gatt;
     _gattCallback = gattCallback;
 }
Esempio n. 12
0
 public void Update(BluetoothDevice nativeDevice, BluetoothGatt gatt,
     IGattCallback gattCallback)
 {
     _nativeDevice = nativeDevice;
     _gatt = gatt;
     _gattCallback = gattCallback;
 }
Esempio 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];
        }
Esempio 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];
        }
Esempio n. 15
0
        public void Update(BluetoothDevice nativeDevice, BluetoothGatt gatt, IGattCallback gattCallback)
        {
            _nativeDevice = nativeDevice;
            _gatt = gatt;
            _gattCallback = gattCallback;

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

            Id   = ParseDeviceId();
            Name = _nativeDevice.Name;
        }
Esempio n. 17
0
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback _gattCallback)
 {
     this._nativeService = nativeService;
     this._gatt          = gatt;
     this._gattCallback  = _gattCallback;
 }
Esempio n. 18
0
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback gattCallback)
 {
     _nativeService = nativeService;
     _gatt = gatt;
     _gattCallback = gattCallback;
 }
Esempio 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);
 }
 public Service(BluetoothGattService nativeService, BluetoothGatt gatt, IGattCallback gattCallback)
 {
     _nativeService = nativeService;
     _gatt          = gatt;
     _gattCallback  = gattCallback;
 }
Esempio 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);
 }