Test Connection
Add Todo Bot use Webservice now TBD : Rework Event
This commit is contained in:
@@ -10,6 +10,7 @@ using ChallongeCSharpDriver.Main;
|
||||
using ChallongeCSharpDriver.Main.Objects;
|
||||
using LaDOSE.DTO;
|
||||
using LaDOSE.REST;
|
||||
using RestSharp.Authenticators;
|
||||
|
||||
namespace LaDOSE.DiscordBot.Service
|
||||
{
|
||||
@@ -17,12 +18,20 @@ namespace LaDOSE.DiscordBot.Service
|
||||
{
|
||||
private RestService restService;
|
||||
|
||||
public RestService RestService => restService;
|
||||
|
||||
public WebService(Uri uri,string user,string password)
|
||||
{
|
||||
restService = new RestService();
|
||||
restService.Connect(uri,user,password);
|
||||
}
|
||||
|
||||
private void CheckToken()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String GetInscrits()
|
||||
@@ -37,5 +46,10 @@ namespace LaDOSE.DiscordBot.Service
|
||||
{
|
||||
return restService.RefreshDb();
|
||||
}
|
||||
|
||||
public string GetLastChallonge()
|
||||
{
|
||||
return restService.GetLastChallonge();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user