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.
27 lines
708 B
27 lines
708 B
using RadarrSharp.Services;
|
|
using RadarrSharp.Services.Implementation;
|
|
using RadarrSharp.Services.Interface;
|
|
|
|
namespace RadarrSharp
|
|
{
|
|
public class RadarrClient
|
|
{
|
|
public IMovieService Movie;
|
|
public IQualityService Quality;
|
|
private string _ip, _port, _apiKey;
|
|
public RadarrClient(string ip, string port, string apiKey)
|
|
{
|
|
this._ip = ip;
|
|
this._port = port;
|
|
this._apiKey = apiKey;
|
|
RegisterRadarrServices();
|
|
}
|
|
|
|
private void RegisterRadarrServices()
|
|
{
|
|
Movie = new MovieService(_ip, _port, _apiKey);
|
|
Quality = new QualityService(_ip, _port, _apiKey);
|
|
}
|
|
}
|
|
}
|