avancement relation bdd / api / mobile
continuous-integration/drone/push Build is failing Details

master
Jolys Enzo 2 years ago
parent 45d5ef5e48
commit 624a733009

@ -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}

@ -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; }
}
}
}

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

@ -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<Champion?> AddItem(Champion? item)
{
throw new NotImplementedException();
}
public Task<bool> DeleteItem(Champion? item)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Champion?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Champion?>> GetItemsByCharacteristic(string charName, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Champion?>> GetItemsByClass(ChampionClass championClass, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Champion?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Champion?>> GetItemsByRunePage(RunePage? runePage, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Champion?>> GetItemsBySkill(Skill? skill, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Champion?>> GetItemsBySkill(string skill, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<int> GetNbItems()
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByCharacteristic(string charName)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByClass(ChampionClass championClass)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByName(string substring)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByRunePage(RunePage? runePage)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsBySkill(Skill? skill)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsBySkill(string skill)
{
throw new NotImplementedException();
}
public Task<Champion?> UpdateItem(Champion? oldItem, Champion? newItem)
{
throw new NotImplementedException();
}
}
}

@ -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<IDataManager, StubData>()
.AddSingleton<ChampionsMgrVM>()
.AddSingleton<SkinsMgrVM>()

@ -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);

@ -0,0 +1,4 @@
- Nombre_Total_De_Champion :
- Get_Champions (index,count,"Name")
-
Loading…
Cancel
Save