Radarr/NzbDrone.Core/Datastore/Events/ModelEvent.cs

26 lines
504 B
C#
Raw Normal View History

2013-05-05 21:24:33 +00:00
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;
}
}
2013-05-05 21:24:33 +00:00
public enum RepositoryAction
{
Created = 1,
Updated = 2,
Deleted = 3
2013-05-05 21:24:33 +00:00
}
}