// <copyright file="IHasPluginConfiguration.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>

namespace MediaBrowser.Common.Plugins
{
    using System;
    using MediaBrowser.Model.Plugins;

    /// <summary>
    /// Defines the <see cref="IHasPluginConfiguration" />.
    /// </summary>
    public interface IHasPluginConfiguration
    {
        /// <summary>
        /// Gets the type of configuration this plugin uses.
        /// </summary>
        Type ConfigurationType { get; }

        /// <summary>
        /// Gets the plugin's configuration.
        /// </summary>
        BasePluginConfiguration Configuration { get; }

        /// <summary>
        /// Completely overwrites the current configuration with a new copy.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        void UpdateConfiguration(BasePluginConfiguration configuration);
    }
}
