using System;
namespace MediaBrowser.Controller.Providers
{
public class MetadataStatus
{
///
/// Gets or sets the item identifier.
///
/// The item identifier.
public Guid ItemId { get; set; }
///
/// Gets or sets the date last metadata refresh.
///
/// The date last metadata refresh.
public DateTime? DateLastMetadataRefresh { get; set; }
///
/// Gets or sets the date last images refresh.
///
/// The date last images refresh.
public DateTime? DateLastImagesRefresh { get; set; }
public DateTime? ItemDateModified { get; set; }
public bool IsDirty { get; private set; }
public void SetDateLastMetadataRefresh(DateTime? date)
{
if (date != DateLastMetadataRefresh)
{
IsDirty = true;
}
DateLastMetadataRefresh = date;
}
public void SetDateLastImagesRefresh(DateTime? date)
{
if (date != DateLastImagesRefresh)
{
IsDirty = true;
}
DateLastImagesRefresh = date;
}
}
}