signalr cleanup

This commit is contained in:
kay.one
2013-09-10 23:33:47 -07:00
committed by Keivan Beigi
parent feda4a9b67
commit 25e2c98c45
219 changed files with 2035 additions and 1495 deletions

View File

@@ -2,23 +2,25 @@
namespace NzbDrone.Core.Datastore.Events
{
public class ModelEvent<T> : IEvent where T : ModelBase
public class ModelEvent <TModel> : IEvent
{
public T Model { get; set; }
public RepositoryAction Action { get; set; }
public TModel Model { get; set; }
public ModelAction Action { get; set; }
public ModelEvent(T model, RepositoryAction action)
public ModelEvent(TModel model, ModelAction action)
{
Model = model;
Action = action;
}
}
public enum RepositoryAction
public enum ModelAction
{
Unknow = 0,
Created = 1,
Updated = 2,
Deleted = 3
Deleted = 3,
Sync = 4
}