mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
XbmcProvider updated to include new Json API methods.
EventClient is used for sending CleanLibrary and Notifications (With NzbDrone Logo - Internal Resource). Support for Dharma's HTTP Server (Deprecated), since Dharma doesn't support Json as well.
This commit is contained in:
parent
5bbc9a6f59
commit
348ff5a386
26 changed files with 1312 additions and 158 deletions
13
NzbDrone.Core/Model/Xbmc/ActionType.cs
Normal file
13
NzbDrone.Core/Model/Xbmc/ActionType.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public enum ActionType
|
||||
{
|
||||
ExecBuiltin = 0x01,
|
||||
Button = 0x02
|
||||
}
|
||||
}
|
14
NzbDrone.Core/Model/Xbmc/ActivePlayersResult.cs
Normal file
14
NzbDrone.Core/Model/Xbmc/ActivePlayersResult.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class ActivePlayersResult
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string JsonRpc { get; set; }
|
||||
public Dictionary<string, bool> Result { get; set; }
|
||||
}
|
||||
}
|
19
NzbDrone.Core/Model/Xbmc/Command.cs
Normal file
19
NzbDrone.Core/Model/Xbmc/Command.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class Command
|
||||
{
|
||||
public string jsonrpc
|
||||
{
|
||||
get { return "2.0"; }
|
||||
}
|
||||
|
||||
public string method { get; set; }
|
||||
public Params @params { get; set; }
|
||||
public long id { get; set; }
|
||||
}
|
||||
}
|
14
NzbDrone.Core/Model/Xbmc/ErrorResult.cs
Normal file
14
NzbDrone.Core/Model/Xbmc/ErrorResult.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class ErrorResult
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string JsonRpc { get; set; }
|
||||
public Dictionary<string, string> Error { get; set; }
|
||||
}
|
||||
}
|
15
NzbDrone.Core/Model/Xbmc/IconType.cs
Normal file
15
NzbDrone.Core/Model/Xbmc/IconType.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public enum IconType
|
||||
{
|
||||
None = 0x00,
|
||||
Jpeg = 0x01,
|
||||
Png = 0x02,
|
||||
Gif = 0x03
|
||||
}
|
||||
}
|
12
NzbDrone.Core/Model/Xbmc/Params.cs
Normal file
12
NzbDrone.Core/Model/Xbmc/Params.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class Params
|
||||
{
|
||||
public string[] fields { get; set; }
|
||||
}
|
||||
}
|
15
NzbDrone.Core/Model/Xbmc/TvShow.cs
Normal file
15
NzbDrone.Core/Model/Xbmc/TvShow.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class TvShow
|
||||
{
|
||||
public int TvShowId { get; set; }
|
||||
public string Label { get; set; }
|
||||
public int ImdbNumber { get; set; }
|
||||
public string File { get; set; }
|
||||
}
|
||||
}
|
14
NzbDrone.Core/Model/Xbmc/TvShowResult.cs
Normal file
14
NzbDrone.Core/Model/Xbmc/TvShowResult.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class TvShowResult
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string JsonRpc { get; set; }
|
||||
public Dictionary<string, List<TvShow>> Result { get; set; }
|
||||
}
|
||||
}
|
14
NzbDrone.Core/Model/Xbmc/VersionResult.cs
Normal file
14
NzbDrone.Core/Model/Xbmc/VersionResult.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class VersionResult
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string JsonRpc { get; set; }
|
||||
public Dictionary<string, int> Result { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue