1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-13 22:43:35 +01:00
Radarr/NzbDrone.Core/Datastore/Events/ModelEvent.cs
kay.one 40f384968a updated json serilizer to return defaults
use enum text instead of number
2013-05-05 18:16:38 -07:00

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