#pragma warning disable CA1813 // Avoid unsealed attributes
using System;
namespace Jellyfin.Api.Attributes
{
    /// 
    /// Internal produces image attribute.
    /// 
    [AttributeUsage(AttributeTargets.Method)]
    public class ProducesFileAttribute : Attribute
    {
        private readonly string[] _contentTypes;
        /// 
        /// Initializes a new instance of the  class.
        /// 
        /// Content types this endpoint produces.
        public ProducesFileAttribute(params string[] contentTypes)
        {
            _contentTypes = contentTypes;
        }
        /// 
        /// Gets the configured content types.
        /// 
        /// the configured content types.
        public string[] GetContentTypes() => _contentTypes;
    }
}