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.
32 lines
820 B
32 lines
820 B
using Model;
|
|
using System.Net.Http;
|
|
|
|
namespace ApiLib
|
|
{
|
|
public partial class ApiManager : IDataManager
|
|
{
|
|
protected HttpClient HttpClient { get; }
|
|
|
|
|
|
public ApiManager(HttpClient httpClient)
|
|
{
|
|
ChampionsMgr = new ChampionsManager(this);
|
|
SkinsMgr = new SkinsManager(this);
|
|
/*RunesMgr = new RunesManager(this);
|
|
RunePagesMgr = new RunePagesManager(this);*/
|
|
|
|
HttpClient = httpClient;
|
|
|
|
HttpClient.BaseAddress = new Uri("https://codefirst.iut.uca.fr/containers/arthurvalin-lolcontainer/api/v2");
|
|
|
|
}
|
|
|
|
public IChampionsManager ChampionsMgr { get; }
|
|
|
|
public ISkinsManager SkinsMgr { get; }
|
|
|
|
public IRunesManager RunesMgr { get; }
|
|
|
|
public IRunePagesManager RunePagesMgr { get; }
|
|
}
|
|
} |