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 HttpSubscribeAttribute : HttpMethodAttribute
{
private static readonly IEnumerable _supportedMethods = new[] { "SUBSCRIBE" };
///
/// Initializes a new instance of the class.
///
public HttpSubscribeAttribute()
: base(_supportedMethods)
{
}
///
/// Initializes a new instance of the class.
///
/// The route template. May not be null.
public HttpSubscribeAttribute(string template)
: base(_supportedMethods, template)
=> ArgumentNullException.ThrowIfNull(template);
}