You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/src/NzbDrone.Core/Datastore/Events/ModelEvent.cs

26 lines
508 B

using NzbDrone.Common.Messaging;
namespace NzbDrone.Core.Datastore.Events
{
public class ModelEvent<TModel> : IEvent
{
public TModel Model { get; set; }
public ModelAction Action { get; set; }
public ModelEvent(TModel model, ModelAction action)
{
Model = model;
Action = action;
}
}
public enum ModelAction
{
Unknown = 0,
Created = 1,
Updated = 2,
Deleted = 3,
Sync = 4
}
}