/// <summary> /// Initializes a new instance of the <see cref="ObservableGattDeviceService" /> class. /// </summary> /// <param name="service">The service this class wraps</param> public ObservableGattDeviceService(GattDeviceService service) { Service = service; Name = GattServiceUuidHelper.ConvertUuidToName(service.Uuid); UUID = Service.Uuid.ToString(); GetAllCharacteristics(); }
/// <summary> /// Initializes a new instance of the <see cref="ObservableGattDeviceService" /> class. /// </summary> /// <param name="service">The service this class wraps</param> public ObservableGattDeviceService(GattDeviceService service, BluetoothCacheMode cacheMode) { CacheMode = cacheMode; Service = service; Name = GattServiceUuidHelper.ConvertUuidToName(service.Uuid); UUID = Service.Uuid.ToString(); GetAllCharacteristics(); }
/// <summary> /// Initializes a new instance of the <see cref="ObservableGattDeviceService" /> class. /// </summary> /// <param name="service">The service this class wraps</param> public ObservableGattDeviceService(GattDeviceService service) { Service = service; Name = GattServiceUuidHelper.ConvertUuidToName(service.Uuid); UUID = service.Uuid.ToString(); }