Ejemplo n.º 1
0
 public static Task <IList <JSONProfile> > GetProfiles(HttpClient httpClient, ILogger <RadarrClient> logger, RadarrSettings settings)
 {
     if (settings.Version == "2")
     {
         return(RadarrClientV2.GetProfiles(httpClient, logger, settings));
     }
     else
     {
         return(RadarrClientV3.GetProfiles(httpClient, logger, settings));
     }
 }
Ejemplo n.º 2
0
 public static Task TestConnectionAsync(HttpClient httpClient, ILogger <RadarrClient> logger, RadarrSettings settings)
 {
     if (settings.Version == "2")
     {
         return(RadarrClientV2.TestConnectionAsync(httpClient, logger, settings));
     }
     else
     {
         return(RadarrClientV3.TestConnectionAsync(httpClient, logger, settings));
     }
 }