mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
SignalR/Nancy/Owin/Mono
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user