namespace Artemis.Storage.Legacy.Entities.Plugins;
///
/// Represents the configuration of a plugin, each plugin has one configuration
///
internal class PluginEntity
{
public PluginEntity()
{
Features = new List();
}
public Guid Id { get; set; }
public bool IsEnabled { get; set; }
public List Features { get; set; }
public Artemis.Storage.Entities.Plugins.PluginEntity Migrate()
{
return new Artemis.Storage.Entities.Plugins.PluginEntity()
{
PluginGuid = Id,
IsEnabled = IsEnabled,
Features = Features.Select(f => f.Migrate()).ToList()
};
}
}
///
/// Represents the configuration of a plugin feature, each feature has one configuration
///
internal class PluginFeatureEntity
{
public string Type { get; set; } = string.Empty;
public bool IsEnabled { get; set; }
public Artemis.Storage.Entities.Plugins.PluginFeatureEntity Migrate()
{
return new Artemis.Storage.Entities.Plugins.PluginFeatureEntity()
{
Type = Type,
IsEnabled = IsEnabled
};
}
}