Демонстрационные примеры по ООП
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

2 years ago
using speedLight.BL.Intf;
using speedLight.BL.Models;
namespace speedLight.BL.Providers;
public class DataProvider: IMechanicProvider, IPictureSourceProvider
{
public IEnumerable<Mechanic> GetMechanics()
{
return new List<Mechanic>()
{
new Mechanic(300, "Звук"),
new Mechanic(300000000, "Свет"),
};
}
public IEnumerable<Picture> GetPictureItems()
{
return new List<Picture>()
{
new Picture()
{
Name = "Эйфелева башня",
PointFrom = new Point(100, 100),
PointTo = new Point(100, 200),
Distance = 330,
Url = "https://cdn2.tu-tu.ru/image/pagetree_node_data/1/13d18a14f7afddb06f546aa1aba237cc/",
},
new Picture()
{
Name = "Камп Ноу",
PointFrom = new Point(100, 100),
PointTo = new Point(100, 200),
Distance = 120,
Url = "https://footballtravel.com/uploads/2020/06/Camp-Nou-1024x683.jpg"
},
};
}
}