2017-04-13 23:20:05 +02:00
|
|
|
|
using RestSharp;
|
2017-04-13 13:22:30 +02:00
|
|
|
|
|
|
|
|
|
namespace Geekbot.net.Modules
|
|
|
|
|
{
|
|
|
|
|
public interface ICatClient
|
|
|
|
|
{
|
|
|
|
|
IRestClient Client { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class CatClient : ICatClient
|
|
|
|
|
{
|
|
|
|
|
public CatClient()
|
|
|
|
|
{
|
|
|
|
|
Client = new RestClient("http://random.cat");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IRestClient Client { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|