using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.Routing;
namespace Jellyfin.Api.Attributes
{
///
/// Identifies an action that supports the HTTP GET method.
///
public sealed class HttpUnsubscribeAttribute : HttpMethodAttribute
{
private static readonly IEnumerable _supportedMethods = new[] { "UNSUBSCRIBE" };
///
/// Initializes a new instance of the class.
///
public HttpUnsubscribeAttribute()
: base(_supportedMethods)
{
}
///
/// Initializes a new instance of the class.
///
/// The route template. May not be null.
public HttpUnsubscribeAttribute(string template)
: base(_supportedMethods, template)
{
if (template == null)
{
throw new ArgumentNullException(nameof(template));
}
}
}
}