internal GattService(CBPeripheral peripheral, PeripheralDelegate @delegate, Peripheral parent, CBService service) { this.peripheral = peripheral; this.@delegate = @delegate; Peripheral = parent; this.service = service; }
internal GattDescriptor( CBPeripheral peripheral, PeripheralDelegate @delegate, GattCharacteristic characteristic, CBDescriptor descriptor) { this.peripheral = peripheral; this.@delegate = @delegate; Characteristic = characteristic; this.descriptor = descriptor; }
internal GattCharacteristic( CBPeripheral peripheral, PeripheralDelegate @delegate, GattService service, CBCharacteristic characteristic) { this.peripheral = peripheral; this.@delegate = @delegate; Service = service; this.characteristic = characteristic; }
internal Peripheral( CBCentralManager central, CentralManagerDelegate centralDelegate, CBPeripheral peripheral) { this.central = central; this.centralDelegate = centralDelegate; @delegate = new PeripheralDelegate(); this.peripheral = peripheral; peripheral.Delegate = @delegate; }