diff --git a/Sources/LeagueOfLegends.sln b/Sources/LeagueOfLegends.sln
index 0d9290f..58908c3 100644
--- a/Sources/LeagueOfLegends.sln
+++ b/Sources/LeagueOfLegends.sln
@@ -33,6 +33,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StubLib", "..\SourcesMobile
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ViewModels", "..\SourcesMobileApp\ViewModels\ViewModels.csproj", "{2F0E00EA-4A5A-48C9-B0AA-1A4AA015B372}"
EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Model", "..\SourcesMobileApp\Model\Model.csproj", "{59ADCCA8-AD1D-42FB-AA6E-3A8D8AAE26C5}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RelationApi", "RelationApi\RelationApi.csproj", "{C9ED623A-9298-4644-BA5C-36BBFBC52CFF}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -89,6 +93,14 @@ Global
{2F0E00EA-4A5A-48C9-B0AA-1A4AA015B372}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F0E00EA-4A5A-48C9-B0AA-1A4AA015B372}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F0E00EA-4A5A-48C9-B0AA-1A4AA015B372}.Release|Any CPU.Build.0 = Release|Any CPU
+ {59ADCCA8-AD1D-42FB-AA6E-3A8D8AAE26C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {59ADCCA8-AD1D-42FB-AA6E-3A8D8AAE26C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {59ADCCA8-AD1D-42FB-AA6E-3A8D8AAE26C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {59ADCCA8-AD1D-42FB-AA6E-3A8D8AAE26C5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C9ED623A-9298-4644-BA5C-36BBFBC52CFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C9ED623A-9298-4644-BA5C-36BBFBC52CFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C9ED623A-9298-4644-BA5C-36BBFBC52CFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C9ED623A-9298-4644-BA5C-36BBFBC52CFF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -101,6 +113,8 @@ Global
{0C898A04-092A-49AA-BE65-8AE818A2AF50} = {A8B7DE3D-5EBA-435C-A2CC-FB308B909A67}
{CAEE6721-6F5C-4CC9-869D-BC7C645562BF} = {A8B7DE3D-5EBA-435C-A2CC-FB308B909A67}
{2F0E00EA-4A5A-48C9-B0AA-1A4AA015B372} = {A8B7DE3D-5EBA-435C-A2CC-FB308B909A67}
+ {59ADCCA8-AD1D-42FB-AA6E-3A8D8AAE26C5} = {A8B7DE3D-5EBA-435C-A2CC-FB308B909A67}
+ {C9ED623A-9298-4644-BA5C-36BBFBC52CFF} = {A8B7DE3D-5EBA-435C-A2CC-FB308B909A67}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {92F3083D-793F-4552-8A9A-0AD6534159C9}
diff --git a/Sources/RelationApi/Relation.cs b/Sources/RelationApi/Relation.cs
new file mode 100644
index 0000000..7659c1f
--- /dev/null
+++ b/Sources/RelationApi/Relation.cs
@@ -0,0 +1,25 @@
+using Model;
+
+namespace RelationApi
+{
+ public class Relation : IDataManager
+ {
+ public Relation()
+ {
+ RelationChampion = new RelationChampion();
+ SkinsMgr = new SkinsManager(this);
+ RunesMgr = new RunesManager(this);
+ RunePagesMgr = new RunePagesManager(this);
+ }
+
+ public IChampionsManager RelationChampion { get; }
+
+ public ISkinsManager SkinsMgr { get; }
+
+ public IRunesManager RunesMgr { get; }
+
+ public IRunePagesManager RunePagesMgr { get; }
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/Sources/RelationApi/RelationApi.csproj b/Sources/RelationApi/RelationApi.csproj
new file mode 100644
index 0000000..132c02c
--- /dev/null
+++ b/Sources/RelationApi/RelationApi.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net6.0
+ enable
+ enable
+
+
+
diff --git a/Sources/RelationApi/RelationChampion.cs b/Sources/RelationApi/RelationChampion.cs
new file mode 100644
index 0000000..17037b2
--- /dev/null
+++ b/Sources/RelationApi/RelationChampion.cs
@@ -0,0 +1,100 @@
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace RelationApi
+{
+ public class RelationChampion : IChampionsManager
+ {
+
+
+
+ public Task AddItem(Champion? item)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task DeleteItem(Champion? item)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> GetItemsByCharacteristic(string charName, int index, int count, string? orderingPropertyName = null, bool descending = false)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> GetItemsByClass(ChampionClass championClass, int index, int count, string? orderingPropertyName = null, bool descending = false)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> GetItemsByRunePage(RunePage? runePage, int index, int count, string? orderingPropertyName = null, bool descending = false)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> GetItemsBySkill(Skill? skill, int index, int count, string? orderingPropertyName = null, bool descending = false)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task> GetItemsBySkill(string skill, int index, int count, string? orderingPropertyName = null, bool descending = false)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task GetNbItems()
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task GetNbItemsByCharacteristic(string charName)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task GetNbItemsByClass(ChampionClass championClass)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task GetNbItemsByName(string substring)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task GetNbItemsByRunePage(RunePage? runePage)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task GetNbItemsBySkill(Skill? skill)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task GetNbItemsBySkill(string skill)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task UpdateItem(Champion? oldItem, Champion? newItem)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/SourcesMobileApp/LolApp/MauiProgram.cs b/SourcesMobileApp/LolApp/MauiProgram.cs
index dfe7d83..6ed47a0 100644
--- a/SourcesMobileApp/LolApp/MauiProgram.cs
+++ b/SourcesMobileApp/LolApp/MauiProgram.cs
@@ -23,6 +23,7 @@ public static class MauiProgram
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
fonts.AddFont("Font Awesome 6 Free-Solid-900.otf", "FASolid");
});
+ /// ICI CHANGER LE SINGLETON
builder.Services.AddSingleton()
.AddSingleton()
.AddSingleton()
diff --git a/SourcesMobileApp/ViewModels/ChampionsMgrVM.cs b/SourcesMobileApp/ViewModels/ChampionsMgrVM.cs
index 06e5d67..526bde4 100644
--- a/SourcesMobileApp/ViewModels/ChampionsMgrVM.cs
+++ b/SourcesMobileApp/ViewModels/ChampionsMgrVM.cs
@@ -66,6 +66,7 @@ public partial class ChampionsMgrVM : ObservableObject
[RelayCommand]
public async Task LoadChampions()
{
+ // CHANGER LA REQUETE ICI
await LoadChampionsFunc(async () => await DataMgr.ChampionsMgr.GetItems(index, count, "Name"),
async () => await DataMgr.ChampionsMgr.GetNbItems(),
LoadingCriterium.None);
diff --git a/routePourAppMobile.txt b/routePourAppMobile.txt
new file mode 100644
index 0000000..b3689fa
--- /dev/null
+++ b/routePourAppMobile.txt
@@ -0,0 +1,4 @@
+
+- Nombre_Total_De_Champion :
+- Get_Champions (index,count,"Name")
+-
\ No newline at end of file