This commit is contained in:
crobibero
2020-09-08 15:10:57 -06:00
commit d4debbbb18
40 changed files with 2984 additions and 0 deletions
@@ -0,0 +1,44 @@
using System.Text.Json.Serialization;
namespace Jellyfin.Plugin.Simkl.API.Responses
{
/// <summary>
/// Code response.
/// </summary>
public class CodeResponse
{
/// <summary>
/// Gets or sets result.
/// </summary>
public string Result { get; set; }
/// <summary>
/// Gets or sets device code.
/// </summary>
[JsonPropertyName("device_code")]
public string DeviceCode { get; set; }
/// <summary>
/// Gets or sets user code.
/// </summary>
[JsonPropertyName("user_code")]
public string UserCode { get; set; }
/// <summary>
/// Gets or sets verification url.
/// </summary>
[JsonPropertyName("verification_url")]
public string VerificationUrl { get; set; }
/// <summary>
/// Gets or sets expires in.
/// </summary>
[JsonPropertyName("expires_in")]
public int ExpiresIn { get; set; }
/// <summary>
/// Gets or sets interval.
/// </summary>
public int Interval { get; set; }
}
}
@@ -0,0 +1,26 @@
using System.Text.Json.Serialization;
namespace Jellyfin.Plugin.Simkl.API.Responses
{
/// <summary>
/// Code status response.
/// </summary>
public class CodeStatusResponse
{
/// <summary>
/// Gets or sets result.
/// </summary>
public string Result { get; set; }
/// <summary>
/// Gets or sets message.
/// </summary>
public string Message { get; set; }
/// <summary>
/// Gets or sets access token.
/// </summary>
[JsonPropertyName("access_token")]
public string AccessToken { get; set; }
}
}
@@ -0,0 +1,30 @@
using Jellyfin.Plugin.Simkl.API.Objects;
namespace Jellyfin.Plugin.Simkl.API.Responses
{
/// <summary>
/// Search file response.
/// </summary>
public class SearchFileResponse
{
/// <summary>
/// Gets or sets type.
/// </summary>
public string Type { get; set; }
/// <summary>
/// Gets or sets episode.
/// </summary>
public SimklEpisode Episode { get; set; }
/// <summary>
/// Gets or sets movie.
/// </summary>
public SimklMovie Movie { get; set; }
/// <summary>
/// Gets or sets show.
/// </summary>
public SimklShow Show { get; set; }
}
}
@@ -0,0 +1,25 @@
using Jellyfin.Plugin.Simkl.API.Objects;
namespace Jellyfin.Plugin.Simkl.API.Responses
{
/// <summary>
/// sync history not found.
/// </summary>
public class SyncHistoryNotFound
{
/// <summary>
/// Gets or sets movies.
/// </summary>
public SimklMovie[] Movies { get; set; }
/// <summary>
/// Gets or sets shows.
/// </summary>
public SimklShow[] Shows { get; set; }
/// <summary>
/// Gets or sets episodes.
/// </summary>
public SimklEpisode[] Episodes { get; set; }
}
}
@@ -0,0 +1,21 @@
using System.Text.Json.Serialization;
namespace Jellyfin.Plugin.Simkl.API.Responses
{
/// <summary>
/// Sync history response.
/// </summary>
public class SyncHistoryResponse
{
/// <summary>
/// Gets or sets added.
/// </summary>
public SyncHistoryResponseCount Added { get; set; }
/// <summary>
/// Gets or sets not found.
/// </summary>
[JsonPropertyName("not_found")]
public SyncHistoryNotFound NotFound { get; set; }
}
}
@@ -0,0 +1,23 @@
namespace Jellyfin.Plugin.Simkl.API.Responses
{
/// <summary>
/// Sync history response count.
/// </summary>
public class SyncHistoryResponseCount
{
/// <summary>
/// Gets or sets movies.
/// </summary>
public int Movies { get; set; }
/// <summary>
/// Gets or sets shows.
/// </summary>
public int Shows { get; set; }
/// <summary>
/// Gets or sets episodes.
/// </summary>
public int Episodes { get; set; }
}
}