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