/// <summary> /// The get devices. /// </summary> public List<IRemoteDevice> GetRemoteDeviceList(DeviceAuthorizedEnum authorized) { return this._deviceList.Where(x => x.Authorized == (int)authorized).ToList(); }
/// <summary> /// The get all devices. /// </summary> /// <param name="authorized"> /// The authorized. /// </param> /// <returns> /// The <see cref="IEnumerable"/>. /// </returns> public IEnumerable<IRemoteDevice> GetAllDevices(DeviceAuthorizedEnum authorized) { return this._layers.SelectMany(x => x.GetRemoteDeviceList(authorized)); }