architecture des manageurs et de relation entre api et lolapp
continuous-integration/drone/push Build is failing Details

master
Jolys Enzo 2 years ago
parent 624a733009
commit 140b06719d

@ -12,10 +12,10 @@ namespace EntityFramwork.Manager
{ {
public Manager() public Manager()
{ {
ChampionsMgr = new ChampionsManager(this); ChampionsMgr = new ManagerChampion();
SkinsMgr = new SkinsManager(this); SkinsMgr = new ManagerSkins();
RunesMgr = new RunesManager(this); RunesMgr = new ManagerRune();
RunePagesMgr = new RunePagesManager(this); RunePagesMgr = new ManagerRunePage();
} }
public IChampionsManager ChampionsMgr { get; } public IChampionsManager ChampionsMgr { get; }

@ -7,99 +7,91 @@ using System.Threading.Tasks;
namespace EntityFramwork.Manager namespace EntityFramwork.Manager
{ {
public partial class Manager public class ManagerChampion : IChampionsManager
{ {
public class ChampionsManager : IChampionsManager public Task<Champion?> AddItem(Champion? item)
{ {
private readonly Manager parent; throw new NotImplementedException();
}
public ChampionsManager(Manager parent)
=> this.parent = parent; public Task<bool> DeleteItem(Champion? item)
{
public Task<Champion?> AddItem(Champion? item) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<IEnumerable<Champion?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{
public Task<bool> DeleteItem(Champion? item) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<IEnumerable<Champion?>> GetItemsByCharacteristic(string charName, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
public Task<IEnumerable<Champion?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<IEnumerable<Champion?>> GetItemsByClass(ChampionClass championClass, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
public Task<IEnumerable<Champion?>> GetItemsByCharacteristic(string charName, int index, int count, string? orderingPropertyName = null, bool descending = false) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<IEnumerable<Champion?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
public Task<IEnumerable<Champion?>> GetItemsByClass(ChampionClass championClass, int index, int count, string? orderingPropertyName = null, bool descending = false) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<IEnumerable<Champion?>> GetItemsByRunePage(RunePage? runePage, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
public Task<IEnumerable<Champion?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<IEnumerable<Champion?>> GetItemsBySkill(Skill? skill, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
public Task<IEnumerable<Champion?>> GetItemsByRunePage(RunePage? runePage, int index, int count, string? orderingPropertyName = null, bool descending = false) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<IEnumerable<Champion?>> GetItemsBySkill(string skill, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
public Task<IEnumerable<Champion?>> GetItemsBySkill(Skill? skill, int index, int count, string? orderingPropertyName = null, bool descending = false) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<int> GetNbItems()
{
public Task<IEnumerable<Champion?>> GetItemsBySkill(string skill, int index, int count, string? orderingPropertyName = null, bool descending = false) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<int> GetNbItemsByCharacteristic(string charName)
{
public Task<int> GetNbItems() throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<int> GetNbItemsByClass(ChampionClass championClass)
{
public Task<int> GetNbItemsByCharacteristic(string charName) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<int> GetNbItemsByName(string substring)
{
public Task<int> GetNbItemsByClass(ChampionClass championClass) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<int> GetNbItemsByRunePage(RunePage? runePage)
{
public Task<int> GetNbItemsByName(string substring) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<int> GetNbItemsBySkill(Skill? skill)
{
public Task<int> GetNbItemsByRunePage(RunePage? runePage) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<int> GetNbItemsBySkill(string skill)
{
public Task<int> GetNbItemsBySkill(Skill? skill) throw new NotImplementedException();
{ }
throw new NotImplementedException();
} public Task<Champion?> UpdateItem(Champion? oldItem, Champion? newItem)
{
public Task<int> GetNbItemsBySkill(string skill) throw new NotImplementedException();
{
throw new NotImplementedException();
}
public Task<Champion?> UpdateItem(Champion? oldItem, Champion? newItem)
{
throw new NotImplementedException();
}
} }
} }
} }

@ -7,59 +7,51 @@ using System.Threading.Tasks;
namespace EntityFramwork.Manager namespace EntityFramwork.Manager
{ {
public partial class Manager public class ManagerRune : IRunesManager
{ {
public class RunesManager : IRunesManager public Task<Model.Rune?> AddItem(Model.Rune? item)
{ {
private readonly Manager parent; throw new NotImplementedException();
}
public RunesManager(Manager parent)
=> this.parent = parent;
public Task<Model.Rune?> AddItem(Model.Rune? item)
{
throw new NotImplementedException();
}
public Task<bool> DeleteItem(Model.Rune? item) public Task<bool> DeleteItem(Model.Rune? item)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<IEnumerable<Model.Rune?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) public Task<IEnumerable<Model.Rune?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<IEnumerable<Model.Rune?>> GetItemsByFamily(RuneFamily family, int index, int count, string? orderingPropertyName = null, bool descending = false) public Task<IEnumerable<Model.Rune?>> GetItemsByFamily(RuneFamily family, int index, int count, string? orderingPropertyName = null, bool descending = false)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<IEnumerable<Model.Rune?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) public Task<IEnumerable<Model.Rune?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<int> GetNbItems() public Task<int> GetNbItems()
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<int> GetNbItemsByFamily(RuneFamily family) public Task<int> GetNbItemsByFamily(RuneFamily family)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<int> GetNbItemsByName(string substring) public Task<int> GetNbItemsByName(string substring)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<Model.Rune?> UpdateItem(Model.Rune? oldItem, Model.Rune? newItem) public Task<Model.Rune?> UpdateItem(Model.Rune? oldItem, Model.Rune? newItem)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
}
} }
} }
} }

@ -7,69 +7,61 @@ using System.Threading.Tasks;
namespace EntityFramwork.Manager namespace EntityFramwork.Manager
{ {
public partial class Manager public class ManagerRunePage : IRunePagesManager
{ {
public class RunePagesManager : IRunePagesManager public Task<RunePage?> AddItem(RunePage? item)
{ {
private readonly Manager parent; throw new NotImplementedException();
}
public RunePagesManager(Manager parent)
=> this.parent = parent;
public Task<RunePage?> AddItem(RunePage? item)
{
throw new NotImplementedException();
}
public Task<bool> DeleteItem(RunePage? item) public Task<bool> DeleteItem(RunePage? item)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<IEnumerable<RunePage?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) public Task<IEnumerable<RunePage?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<IEnumerable<RunePage?>> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false) public Task<IEnumerable<RunePage?>> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<IEnumerable<RunePage?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) public Task<IEnumerable<RunePage?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<IEnumerable<RunePage?>> GetItemsByRune(Model.Rune? rune, int index, int count, string? orderingPropertyName = null, bool descending = false) public Task<IEnumerable<RunePage?>> GetItemsByRune(Model.Rune? rune, int index, int count, string? orderingPropertyName = null, bool descending = false)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<int> GetNbItems() public Task<int> GetNbItems()
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<int> GetNbItemsByChampion(Champion? champion) public Task<int> GetNbItemsByChampion(Champion? champion)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<int> GetNbItemsByName(string substring) public Task<int> GetNbItemsByName(string substring)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<int> GetNbItemsByRune(Model.Rune? rune) public Task<int> GetNbItemsByRune(Model.Rune? rune)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public Task<RunePage?> UpdateItem(RunePage? oldItem, RunePage? newItem) public Task<RunePage?> UpdateItem(RunePage? oldItem, RunePage? newItem)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
}
} }
} }
} }

@ -7,59 +7,8 @@ using System.Threading.Tasks;
namespace EntityFramwork.Manager namespace EntityFramwork.Manager
{ {
public partial class Manager public class ManagerSkins : ISkinsManager
{ {
public class SkinsManager : ISkinsManager
{
private readonly Manager parent;
public SkinsManager(Manager parent)
=> this.parent = parent;
public Task<Skin?> AddItem(Skin? item)
{
throw new NotImplementedException();
}
public Task<bool> DeleteItem(Skin? item)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Skin?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Skin?>> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Skin?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<int> GetNbItems()
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByChampion(Champion? champion)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByName(string substring)
{
throw new NotImplementedException();
}
public Task<Skin?> UpdateItem(Skin? oldItem, Skin? newItem)
{
throw new NotImplementedException();
}
}
} }
} }

@ -1,25 +1,26 @@
using Model; 
using Model;
namespace RelationApi namespace RelationApi
{ {
public class Relation : IDataManager public class Relation : IDataManager
{ {
public Relation() public Relation()
{ {
RelationChampion = new RelationChampion(); ChampionsMgr = new RelationChampion();
SkinsMgr = new SkinsManager(this); SkinsMgr = new RelationSkins();
RunesMgr = new RunesManager(this); RunesMgr = new RelationRune();
RunePagesMgr = new RunePagesManager(this); RunePagesMgr = new RelationRunePage();
} }
public IChampionsManager RelationChampion { get; } public IChampionsManager ChampionsMgr { get; }
public ISkinsManager SkinsMgr { get; } public ISkinsManager SkinsMgr { get; }
public IRunesManager RunesMgr { get; } public IRunesManager RunesMgr { get; }
public IRunePagesManager RunePagesMgr { get; } public IRunePagesManager RunePagesMgr { get; }
}
} }
} }

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>

@ -9,8 +9,6 @@ namespace RelationApi
{ {
public class RelationChampion : IChampionsManager public class RelationChampion : IChampionsManager
{ {
public Task<Champion?> AddItem(Champion? item) public Task<Champion?> AddItem(Champion? item)
{ {

@ -0,0 +1,57 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RelationApi
{
public class RelationRune : IRunesManager
{
public Task<Model.Rune?> AddItem(Model.Rune? item)
{
throw new NotImplementedException();
}
public Task<bool> DeleteItem(Model.Rune? item)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Model.Rune?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Model.Rune?>> GetItemsByFamily(RuneFamily family, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Model.Rune?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<int> GetNbItems()
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByFamily(RuneFamily family)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByName(string substring)
{
throw new NotImplementedException();
}
public Task<Model.Rune?> UpdateItem(Model.Rune? oldItem, Model.Rune? newItem)
{
throw new NotImplementedException();
}
}
}

@ -0,0 +1,67 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RelationApi
{
internal class RelationRunePage : IRunePagesManager
{
public Task<RunePage?> AddItem(RunePage? item)
{
throw new NotImplementedException();
}
public Task<bool> DeleteItem(RunePage? item)
{
throw new NotImplementedException();
}
public Task<IEnumerable<RunePage?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<RunePage?>> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<RunePage?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<RunePage?>> GetItemsByRune(Model.Rune? rune, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<int> GetNbItems()
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByChampion(Champion? champion)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByName(string substring)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByRune(Model.Rune? rune)
{
throw new NotImplementedException();
}
public Task<RunePage?> UpdateItem(RunePage? oldItem, RunePage? newItem)
{
throw new NotImplementedException();
}
}
}

@ -0,0 +1,57 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RelationApi
{
public class RelationSkins : ISkinsManager
{
public Task<Skin?> AddItem(Skin? item)
{
throw new NotImplementedException();
}
public Task<bool> DeleteItem(Skin? item)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Skin?>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Skin?>> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<IEnumerable<Skin?>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
throw new NotImplementedException();
}
public Task<int> GetNbItems()
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByChampion(Champion? champion)
{
throw new NotImplementedException();
}
public Task<int> GetNbItemsByName(string substring)
{
throw new NotImplementedException();
}
public Task<Skin?> UpdateItem(Skin? oldItem, Skin? newItem)
{
throw new NotImplementedException();
}
}
}
Loading…
Cancel
Save