public async Task Initialize() { _currentHueObjectList = await BridgesManager.Instance.SelectedBridge.GetAllObjectsAsync(); if (_currentHueObjectList == null) { return; } ListTargetHueObject.AddRange(_currentHueObjectList.Where(x => x is Light).ToList()); }
public async Task Initialize(Bridge bridge) { _bridge = bridge; _currentHueObjectList = await HueObjectHelper.GetBridgeDataStoreAsyncTask(_bridge); if (_currentHueObjectList == null) { return; } ListTargetHueObject.AddRange(_currentHueObjectList.Where(x => x is Light).ToList()); }
public async Task Initialize(Bridge bridge) { _bridge = bridge; _currentHueObjectList = await _bridge.GetAllObjectsAsync(); if (_currentHueObjectList == null) { return; } ListTargetHueObject.AddRange(_currentHueObjectList.Where(x => x is Light).ToList()); }