2014-01-29 05:17:58 +00:00
|
|
|
|
using System;
|
2014-01-28 18:37:01 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Marker interface
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IMetadataProvider
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
string Name { get; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IMetadataProvider<TItemType> : IMetadataProvider
|
|
|
|
|
where TItemType : IHasMetadata
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IHasChangeMonitor
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2014-01-29 05:17:58 +00:00
|
|
|
|
/// Determines whether the specified item has changed.
|
2014-01-28 18:37:01 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="date">The date.</param>
|
2014-01-29 05:17:58 +00:00
|
|
|
|
/// <returns><c>true</c> if the specified item has changed; otherwise, <c>false</c>.</returns>
|
2014-01-28 18:37:01 +00:00
|
|
|
|
bool HasChanged(IHasMetadata item, DateTime date);
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-31 19:55:21 +00:00
|
|
|
|
public interface IHasOrder
|
|
|
|
|
{
|
|
|
|
|
int Order { get; }
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-28 18:37:01 +00:00
|
|
|
|
public class MetadataResult<T>
|
|
|
|
|
where T : IHasMetadata
|
|
|
|
|
{
|
|
|
|
|
public bool HasMetadata { get; set; }
|
|
|
|
|
public T Item { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|