mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
signalr cleanup
This commit is contained in:
parent
feda4a9b67
commit
25e2c98c45
219 changed files with 2035 additions and 1495 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue