Skip to content

The Free Software Media System - Server Backend & API

625 B
Raw Blame
using System;
using MediaBrowser.Model.Configuration;

namespace MediaBrowser.Controller.Library;

/// <summary>
/// Base marker interface for similar items providers.
/// </summary>
public interface ISimilarItemsProvider
{
    /// <summary>
    /// Gets the name of the provider.
    /// </summary>
    string Name { get; }

    /// <summary>
    /// Gets the type of the provider.
    /// </summary>
    MetadataPluginType Type { get; }

    /// <summary>
    /// Gets the cache duration for results from this provider.
    /// If null, results will not be cached.
    /// </summary>
    TimeSpan? CacheDuration => null;
}