1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-03-07 15:20:58 +02:00
2013-10-02 18:01:32 -07:00

25 lines
508 B
C#

using NzbDrone.Common.Messaging;
namespace NzbDrone.Core.Datastore.Events
{
public class ModelEvent <TModel> : IEvent
{
public TModel Model { get; set; }
public ModelAction Action { get; set; }
public ModelEvent(TModel model, ModelAction action)
{
Model = model;
Action = action;
}
}
public enum ModelAction
{
Unknown = 0,
Created = 1,
Updated = 2,
Deleted = 3,
Sync = 4
}
}