Add manifest.json and exceptions class
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Plugin.AnilistSync.API.Exceptions
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public class AnilistAPIException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Anilist error status code
|
||||
/// </summary>
|
||||
public int? statusCode;
|
||||
|
||||
/// <summary>
|
||||
/// Array of locations of errors
|
||||
/// </summary>
|
||||
public Location[]? locations;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AnilistAPIException"/> class.
|
||||
/// </summary>
|
||||
public AnilistAPIException()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AnilistAPIException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message.</param>
|
||||
public AnilistAPIException(string message)
|
||||
: base(message)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AnilistAPIException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message.</param>
|
||||
/// <param name="inner">The inner exception.</param>
|
||||
public AnilistAPIException(string message, Exception inner)
|
||||
: base(message, inner)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AnilistAPIException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message</param>
|
||||
/// <param name="statusCode">The error status code</param>
|
||||
/// <param name="locations">The error locations array</param>
|
||||
public AnilistAPIException(string? message, int? statusCode, Location[]? locations)
|
||||
: base(message)
|
||||
{
|
||||
this.statusCode = statusCode;
|
||||
this.locations = locations;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"guid": "d02b875a-2a61-4d74-ae5f-394eca192f74",
|
||||
"name": "AnilistSync",
|
||||
"description": "This plugin will scrobble anime to Anilist for you",
|
||||
"overview": "Scrobble to Anilist",
|
||||
"owner": "ARufenach",
|
||||
"category": "General",
|
||||
"versions": [
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"changelog": "Initial release",
|
||||
"targetAbi": "10.7.0.0",
|
||||
"sourceUrl": "https://github.com/ARufenach/jellyfin-plugin-anilist-sync/releases/download/v1.0.0/AnilistSync_1.0.0.zip",
|
||||
"checksum": "f099d9935001c1e49c710517e8261765",
|
||||
"timestamp": "2021-06-04T05:05:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user