2010-04-28 11:47:29 -07:00
|
|
|
|
using Orchard.Environment.Extensions.Models;
|
|
|
|
|
|
2011-02-21 12:03:06 -08:00
|
|
|
|
namespace Orchard.Modules.Models {
|
2011-02-17 09:17:49 -08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a module's feature.
|
|
|
|
|
/// </summary>
|
2010-11-06 20:27:45 -07:00
|
|
|
|
public class ModuleFeature {
|
2011-02-17 09:17:49 -08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The feature descriptor.
|
|
|
|
|
/// </summary>
|
2010-04-28 11:47:29 -07:00
|
|
|
|
public FeatureDescriptor Descriptor { get; set; }
|
2011-02-17 09:17:49 -08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Boolean value indicating if the feature is enabled.
|
|
|
|
|
/// </summary>
|
2010-04-28 11:47:29 -07:00
|
|
|
|
public bool IsEnabled { get; set; }
|
2011-02-17 09:17:49 -08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Boolean value indicating if the feature needs a data update / migration.
|
|
|
|
|
/// </summary>
|
2010-11-06 20:27:45 -07:00
|
|
|
|
public bool NeedsUpdate { get; set; }
|
2011-02-17 09:17:49 -08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Boolean value indicating if the module needs a version update.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool NeedsVersionUpdate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Boolean value indicating if the feature was recently installed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsRecentlyInstalled { get; set; }
|
2010-04-28 11:47:29 -07:00
|
|
|
|
}
|
|
|
|
|
}
|