1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-21 01:49:57 +02:00
Sonarr/NzbDrone.Core/Datastore/Events/ModelEvent.cs

25 lines
490 B
C#
Raw Normal View History

2013-07-19 06:47:55 +03:00
using NzbDrone.Common.Messaging;
2013-05-06 00:24:33 +03:00
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;
}
}
2013-05-06 00:24:33 +03:00
public enum RepositoryAction
{
Created = 1,
Updated = 2,
Deleted = 3
2013-05-06 00:24:33 +03:00
}
}