using System;
namespace MediaBrowser.Controller.Providers
{
public class MetadataRefreshOptions : ImageRefreshOptions
{
///
/// When paired with MetadataRefreshMode=FullRefresh, all existing data will be overwritten with new data from the providers.
///
public bool ReplaceAllMetadata { get; set; }
public MetadataRefreshMode MetadataRefreshMode { get; set; }
///
/// TODO: deprecate. Keeping this for now, for api compatibility
///
[Obsolete]
public bool ForceSave { get; set; }
}
public class ImageRefreshOptions
{
public ImageRefreshMode ImageRefreshMode { get; set; }
public ImageRefreshOptions()
{
ImageRefreshMode = ImageRefreshMode.Default;
}
}
public enum MetadataRefreshMode
{
///
/// Providers will be executed based on default rules
///
EnsureMetadata,
///
/// No providers will be executed
///
None,
///
/// All providers will be executed to search for new metadata
///
FullRefresh
}
public enum ImageRefreshMode
{
///
/// The default
///
Default,
///
/// Existing images will be validated
///
ValidationOnly,
///
/// All providers will be executed to search for new metadata
///
FullRefresh
}
}