Example #1
0
 /// <summary>
 /// The get devices.
 /// </summary>
 public List<IRemoteDevice> GetRemoteDeviceList(DeviceAuthorizedEnum authorized)
 {
     return this._deviceList.Where(x => x.Authorized == (int)authorized).ToList();
 }
Example #2
0
 /// <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));
 }