using DTO; using Model; using RelationApi.Factories; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http.Json; using System.Text; using System.Threading.Tasks; namespace RelationApi { public class RelationSkins : ISkinsManager { private readonly string IpApi; private readonly HttpClient _httpClient; public RelationSkins(string ipApi, HttpClient http) { IpApi = ipApi; _httpClient = http; } 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 async Task> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false) { /* if ( champion == null) { throw new NotImplementedException(); } IEnumerable dto = await _httpClient.GetFromJsonAsync>(IpApi + "GetItemsByChampion?champ="+champion.ModelToDto()+"index=" + index + "&count=" + count + "&descending=" + descending); return dto.Select(e => e.DtoToModel()).ToList();*/ 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(); } } }