mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
XbmcProvider uses Json.net for reading/writing JSON.
Updated for v3 of XBMC JSON API.
This commit is contained in:
parent
b42acb4b20
commit
3dce784672
7 changed files with 61 additions and 68 deletions
|
@ -1,18 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
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; }
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class Params
|
||||
{
|
||||
public string[] fields { get; set; }
|
||||
}
|
||||
}
|
13
NzbDrone.Core/Model/Xbmc/TvShowResponse.cs
Normal file
13
NzbDrone.Core/Model/Xbmc/TvShowResponse.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Model.Xbmc
|
||||
{
|
||||
public class TvShowResponse
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string JsonRpc { get; set; }
|
||||
public TvShowResult Result { get; set; }
|
||||
}
|
||||
}
|
|
@ -6,8 +6,7 @@ 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; }
|
||||
public Dictionary<string, int> Limits { get; set; }
|
||||
public List<TvShow> TvShows;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue