mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
SignalR/Nancy/Owin/Mono
This commit is contained in:
parent
45b4972091
commit
87a5dc7869
40 changed files with 2375 additions and 76 deletions
27
NzbDrone.Core/Datastore/Events/ModelEvent.cs
Normal file
27
NzbDrone.Core/Datastore/Events/ModelEvent.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using NzbDrone.Common.Messaging;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Events
|
||||
{
|
||||
public class ModelEvent<T> : IEvent where T : ModelBase
|
||||
{
|
||||
public T Model { get; set; }
|
||||
public RepositoryAction Action { get; set; }
|
||||
|
||||
public ModelEvent(T model, RepositoryAction action)
|
||||
{
|
||||
Model = model;
|
||||
Action = action;
|
||||
}
|
||||
|
||||
|
||||
public enum RepositoryAction
|
||||
{
|
||||
Created,
|
||||
Updated,
|
||||
Deleted
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue