2013-02-21 01:33:05 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class BaseProviderInfo
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BaseProviderInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the last refreshed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The last refreshed.</value>
|
|
|
|
|
public DateTime LastRefreshed { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the file system stamp.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The file system stamp.</value>
|
2013-04-25 17:27:36 +00:00
|
|
|
|
public Guid FileStamp { get; set; }
|
2013-02-21 01:33:05 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the last refresh status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The last refresh status.</value>
|
|
|
|
|
public ProviderRefreshStatus LastRefreshStatus { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the provider version.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The provider version.</value>
|
|
|
|
|
public string ProviderVersion { get; set; }
|
2013-04-23 19:17:21 +00:00
|
|
|
|
/// <summary>
|
2013-05-02 22:32:15 +00:00
|
|
|
|
/// Contains a has of data that can be used to determine if the provider should refresh again
|
2013-04-23 19:17:21 +00:00
|
|
|
|
/// </summary>
|
2013-05-02 22:32:15 +00:00
|
|
|
|
public Guid Data { get; set; }
|
2013-02-21 01:33:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Enum ProviderRefreshStatus
|
|
|
|
|
/// </summary>
|
|
|
|
|
public enum ProviderRefreshStatus
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The success
|
|
|
|
|
/// </summary>
|
|
|
|
|
Success,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The failure
|
|
|
|
|
/// </summary>
|
|
|
|
|
Failure,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The completed with errors
|
|
|
|
|
/// </summary>
|
|
|
|
|
CompletedWithErrors
|
|
|
|
|
}
|
|
|
|
|
}
|