mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
27 lines
517 B
C#
27 lines
517 B
C#
|
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
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|