1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 17:57:43 +00:00
Sonarr/NzbDrone.Core/Datastore/Events/ModelEvent.cs
2013-07-18 20:47:55 -07:00

25 lines
No EOL
490 B
C#

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 = 1,
Updated = 2,
Deleted = 3
}
}