using Model.Stub; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { public class Manager { public IDataManager DataManager { get; set; } public Manager() { DataManager = new StubManager(); } public List GetPersonnages() { return DataManager.GetPersonnages().ToList(); } public List GetFruits() { return DataManager.GetFruits().ToList(); } public List GetEquipages() { return DataManager.GetEquipages().ToList(); } public List GetBateaux() { return DataManager.GetBateaux().ToList(); } public List GetBestiaires() { return DataManager.GetBestiaires().ToList(); } public List GetIles() { return DataManager.GetIles().ToList(); } public List FiltrerFDD(string type) { List fdd = GetFruits(); foreach(FruitDuDemon f in fdd.ToList()) { if(f.Type != type) { fdd.Remove(f); } } return fdd; } } }