示例#1
0
        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());
        }
示例#3
0
        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());
        }