using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;

namespace Inspectron.Camera.NoImage
{
    public class NoImageCameraProvider : ICameraProvider
    {
        public string Name { get; } = "No image camera provider";
        public int CamerasToDiscover { get; set; } = 1;
        public ReadOnlyCollection<ICamera> Discover()
        {
            return Enumerable.Range(0, CamerasToDiscover).Select(x => (ICamera)new NoImageCamera(this)).ToList().AsReadOnly();
        }

        public ReadOnlyCollection<ICamera> Cameras { get; }
    }
}