mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 20:38:24 +02:00
29 lines
1.2 KiB
C#
29 lines
1.2 KiB
C#
using MediaBrowser.Controller.Entities;
|
|
using System;
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
{
|
|
public interface IHasChangeMonitor
|
|
{
|
|
/// <summary>
|
|
/// Determines whether the specified item has changed.
|
|
/// </summary>
|
|
/// <param name="item">The item.</param>
|
|
/// <param name="directoryService">The directory service.</param>
|
|
/// <param name="date">The date.</param>
|
|
/// <returns><c>true</c> if the specified item has changed; otherwise, <c>false</c>.</returns>
|
|
bool HasChanged(IHasMetadata item, IDirectoryService directoryService, DateTime date);
|
|
}
|
|
|
|
public interface IHasItemChangeMonitor
|
|
{
|
|
/// <summary>
|
|
/// Determines whether the specified item has changed.
|
|
/// </summary>
|
|
/// <param name="item">The item.</param>
|
|
/// <param name="status">The status.</param>
|
|
/// <param name="directoryService">The directory service.</param>
|
|
/// <returns><c>true</c> if the specified item has changed; otherwise, <c>false</c>.</returns>
|
|
bool HasChanged(IHasMetadata item, MetadataStatus status, IDirectoryService directoryService);
|
|
}
|
|
}
|