Lots of fixes. Becoming more stable now. #865

This commit is contained in:
tidusjar 2017-06-21 17:02:29 +01:00
commit dcf97a1008
31 changed files with 1021 additions and 381 deletions

View file

@ -1,7 +1,5 @@
using System;
using System.Net.Http;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Ombi.Api.Plex.Models;
using Ombi.Api.Plex.Models.Server;
using Ombi.Api.Plex.Models.Status;
@ -10,12 +8,12 @@ namespace Ombi.Api.Plex
{
public class PlexApi : IPlexApi
{
public PlexApi()
public PlexApi(IApi api)
{
Api = new Api();
Api = api;
}
private Api Api { get; }
private IApi Api { get; }
private const string SignInUri = "https://plex.tv/users/sign_in.json";
private const string FriendsUri = "https://plex.tv/pms/friends/all";