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.
28 lines
1.1 KiB
28 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
public class Manager
|
|
{
|
|
public ObservableCollection<Game> Games { get; set; } = new();
|
|
private IPersistance _persistance;
|
|
|
|
public Manager(IPersistance persistance)
|
|
{
|
|
_persistance = persistance;
|
|
Games.Add(new("Elden Ring", "description", 2010, new List<string> { "1","2","3"}, "elden_ring.jpg"));
|
|
Games[0].AddReview(new(5, "C'est trop bien"));
|
|
Games[0].AddReview(new(3.5f, "C'est bien"));
|
|
Games[0].AddReview(new(1.5f, "C'est pas bien"));
|
|
Games.Add(new("Minecraft", "description", 2010, new List<string> { "1", "2", "3" }, "minecraft.jpeg"));
|
|
Games.Add(new("Celeste", "description", 2010, new List<string> { "1", "2" }, "celeste.png"));
|
|
Games.Add(new("GTA V", "description", 2010, new List<string> { "1", "2", "3" }, "gta_v.png"));
|
|
}
|
|
}
|
|
}
|