diff --git a/Sources/EntityFramwork/Manager/Manager.cs b/Sources/EntityFramwork/Manager/Manager.cs index 3da14bf..757fbbc 100644 --- a/Sources/EntityFramwork/Manager/Manager.cs +++ b/Sources/EntityFramwork/Manager/Manager.cs @@ -12,10 +12,10 @@ namespace EntityFramwork.Manager { public Manager() { - ChampionsMgr = new ChampionsManager(this); - SkinsMgr = new SkinsManager(this); - RunesMgr = new RunesManager(this); - RunePagesMgr = new RunePagesManager(this); + ChampionsMgr = new ManagerChampion(); + SkinsMgr = new ManagerSkins(); + RunesMgr = new ManagerRune(); + RunePagesMgr = new ManagerRunePage(); } public IChampionsManager ChampionsMgr { get; } diff --git a/Sources/EntityFramwork/Manager/ManagerChampion.cs b/Sources/EntityFramwork/Manager/ManagerChampion.cs index e41f128..4a80248 100644 --- a/Sources/EntityFramwork/Manager/ManagerChampion.cs +++ b/Sources/EntityFramwork/Manager/ManagerChampion.cs @@ -7,99 +7,91 @@ using System.Threading.Tasks; namespace EntityFramwork.Manager { - public partial class Manager + public class ManagerChampion : IChampionsManager { - public class ChampionsManager : IChampionsManager - { - private readonly Manager parent; - - public ChampionsManager(Manager parent) - => this.parent = parent; - - 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(); - } + 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/Sources/EntityFramwork/Manager/ManagerRune.cs b/Sources/EntityFramwork/Manager/ManagerRune.cs index 246bd44..4e1cc8e 100644 --- a/Sources/EntityFramwork/Manager/ManagerRune.cs +++ b/Sources/EntityFramwork/Manager/ManagerRune.cs @@ -7,59 +7,51 @@ using System.Threading.Tasks; namespace EntityFramwork.Manager { - public partial class Manager + public class ManagerRune : IRunesManager { - public class RunesManager : IRunesManager + public Task AddItem(Model.Rune? item) { - private readonly Manager parent; - - public RunesManager(Manager parent) - => this.parent = parent; - - public Task AddItem(Model.Rune? item) - { - throw new NotImplementedException(); - } + throw new NotImplementedException(); + } - public Task DeleteItem(Model.Rune? item) - { - throw new NotImplementedException(); - } + public Task DeleteItem(Model.Rune? item) + { + throw new NotImplementedException(); + } - public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) - { - throw new NotImplementedException(); - } + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } - public Task> GetItemsByFamily(RuneFamily family, int index, int count, string? orderingPropertyName = null, bool descending = false) - { - throw new NotImplementedException(); - } + public Task> GetItemsByFamily(RuneFamily family, 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> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } - public Task GetNbItems() - { - throw new NotImplementedException(); - } + public Task GetNbItems() + { + throw new NotImplementedException(); + } - public Task GetNbItemsByFamily(RuneFamily family) - { - throw new NotImplementedException(); - } + public Task GetNbItemsByFamily(RuneFamily family) + { + throw new NotImplementedException(); + } - public Task GetNbItemsByName(string substring) - { - throw new NotImplementedException(); - } + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } - public Task UpdateItem(Model.Rune? oldItem, Model.Rune? newItem) - { - throw new NotImplementedException(); - } + public Task UpdateItem(Model.Rune? oldItem, Model.Rune? newItem) + { + throw new NotImplementedException(); } } } diff --git a/Sources/EntityFramwork/Manager/ManagerRunePage.cs b/Sources/EntityFramwork/Manager/ManagerRunePage.cs index 726be4f..32b51d6 100644 --- a/Sources/EntityFramwork/Manager/ManagerRunePage.cs +++ b/Sources/EntityFramwork/Manager/ManagerRunePage.cs @@ -7,69 +7,61 @@ using System.Threading.Tasks; namespace EntityFramwork.Manager { - public partial class Manager + public class ManagerRunePage : IRunePagesManager { - public class RunePagesManager : IRunePagesManager + public Task AddItem(RunePage? item) { - private readonly Manager parent; - - public RunePagesManager(Manager parent) - => this.parent = parent; - - public Task AddItem(RunePage? item) - { - throw new NotImplementedException(); - } + throw new NotImplementedException(); + } - public Task DeleteItem(RunePage? item) - { - throw new NotImplementedException(); - } + public Task DeleteItem(RunePage? item) + { + throw new NotImplementedException(); + } - public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) - { - throw new NotImplementedException(); - } + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } - public Task> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false) - { - throw new NotImplementedException(); - } + public Task> GetItemsByChampion(Champion? champion, 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> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } - public Task> GetItemsByRune(Model.Rune? rune, int index, int count, string? orderingPropertyName = null, bool descending = false) - { - throw new NotImplementedException(); - } + public Task> GetItemsByRune(Model.Rune? rune, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } - public Task GetNbItems() - { - throw new NotImplementedException(); - } + public Task GetNbItems() + { + throw new NotImplementedException(); + } - public Task GetNbItemsByChampion(Champion? champion) - { - throw new NotImplementedException(); - } + public Task GetNbItemsByChampion(Champion? champion) + { + throw new NotImplementedException(); + } - public Task GetNbItemsByName(string substring) - { - throw new NotImplementedException(); - } + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } - public Task GetNbItemsByRune(Model.Rune? rune) - { - throw new NotImplementedException(); - } + public Task GetNbItemsByRune(Model.Rune? rune) + { + throw new NotImplementedException(); + } - public Task UpdateItem(RunePage? oldItem, RunePage? newItem) - { - throw new NotImplementedException(); - } + public Task UpdateItem(RunePage? oldItem, RunePage? newItem) + { + throw new NotImplementedException(); } } } diff --git a/Sources/EntityFramwork/Manager/ManagerSkins.cs b/Sources/EntityFramwork/Manager/ManagerSkins.cs index b28a4ad..992c674 100644 --- a/Sources/EntityFramwork/Manager/ManagerSkins.cs +++ b/Sources/EntityFramwork/Manager/ManagerSkins.cs @@ -7,59 +7,8 @@ using System.Threading.Tasks; 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 AddItem(Skin? item) - { - throw new NotImplementedException(); - } - - public Task DeleteItem(Skin? item) - { - throw new NotImplementedException(); - } - - public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) - { - throw new NotImplementedException(); - } - - public Task> GetItemsByChampion(Champion? champion, 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 GetNbItems() - { - throw new NotImplementedException(); - } - - public Task GetNbItemsByChampion(Champion? champion) - { - throw new NotImplementedException(); - } - - public Task GetNbItemsByName(string substring) - { - throw new NotImplementedException(); - } - - public Task UpdateItem(Skin? oldItem, Skin? newItem) - { - throw new NotImplementedException(); - } - } + } } diff --git a/Sources/RelationApi/Relation.cs b/Sources/RelationApi/Relation.cs index 7659c1f..b8529da 100644 --- a/Sources/RelationApi/Relation.cs +++ b/Sources/RelationApi/Relation.cs @@ -1,25 +1,26 @@ -using Model; + +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); + ChampionsMgr = new RelationChampion(); + SkinsMgr = new RelationSkins(); + RunesMgr = new RelationRune(); + RunePagesMgr = new RelationRunePage(); } - public IChampionsManager RelationChampion { get; } + public IChampionsManager ChampionsMgr { 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 index 132c02c..27ac386 100644 --- a/Sources/RelationApi/RelationApi.csproj +++ b/Sources/RelationApi/RelationApi.csproj @@ -1,4 +1,4 @@ - + net6.0 diff --git a/Sources/RelationApi/RelationChampion.cs b/Sources/RelationApi/RelationChampion.cs index 17037b2..f981aef 100644 --- a/Sources/RelationApi/RelationChampion.cs +++ b/Sources/RelationApi/RelationChampion.cs @@ -9,8 +9,6 @@ namespace RelationApi { public class RelationChampion : IChampionsManager { - - public Task AddItem(Champion? item) { diff --git a/Sources/RelationApi/RelationRune.cs b/Sources/RelationApi/RelationRune.cs new file mode 100644 index 0000000..494bc99 --- /dev/null +++ b/Sources/RelationApi/RelationRune.cs @@ -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 AddItem(Model.Rune? item) + { + throw new NotImplementedException(); + } + + public Task DeleteItem(Model.Rune? item) + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByFamily(RuneFamily family, 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 GetNbItems() + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByFamily(RuneFamily family) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task UpdateItem(Model.Rune? oldItem, Model.Rune? newItem) + { + throw new NotImplementedException(); + } + } +} diff --git a/Sources/RelationApi/RelationRunePage.cs b/Sources/RelationApi/RelationRunePage.cs new file mode 100644 index 0000000..34cd254 --- /dev/null +++ b/Sources/RelationApi/RelationRunePage.cs @@ -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 AddItem(RunePage? item) + { + throw new NotImplementedException(); + } + + public Task DeleteItem(RunePage? item) + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByChampion(Champion? champion, 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> GetItemsByRune(Model.Rune? rune, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItems() + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByChampion(Champion? champion) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByRune(Model.Rune? rune) + { + throw new NotImplementedException(); + } + + public Task UpdateItem(RunePage? oldItem, RunePage? newItem) + { + throw new NotImplementedException(); + } + } +} diff --git a/Sources/RelationApi/RelationSkins.cs b/Sources/RelationApi/RelationSkins.cs new file mode 100644 index 0000000..fba8d73 --- /dev/null +++ b/Sources/RelationApi/RelationSkins.cs @@ -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 AddItem(Skin? item) + { + throw new NotImplementedException(); + } + + public Task DeleteItem(Skin? item) + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByChampion(Champion? champion, 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 GetNbItems() + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByChampion(Champion? champion) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task UpdateItem(Skin? oldItem, Skin? newItem) + { + throw new NotImplementedException(); + } + } +}