You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.3 KiB

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<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 async Task<IEnumerable<Skin?>> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false)
{
/*
if ( champion == null)
{
throw new NotImplementedException();
}
IEnumerable<DtoSkins> dto = await _httpClient.GetFromJsonAsync<IEnumerable<DtoSkins>>(IpApi + "GetItemsByChampion?champ="+champion.ModelToDto()+"index=" + index + "&count=" + count + "&descending=" + descending);
return dto.Select(e => e.DtoToModel()).ToList();*/
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();
}
}
}