using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
///
/// A generic model supporting notifications, this is useful for returning any model type to include notifications from api controllers
///
///
[DataContract(Name = "model", Namespace = "")]
public class ModelWithNotifications : INotificationModel
{
public ModelWithNotifications(T value)
{
Value = value;
Notifications = new List();
}
///
/// The generic value
///
[DataMember(Name = "value")]
public T Value { get; private set; }
///
/// The notifications
///
[DataMember(Name = "notifications")]
public List Notifications { get; private set; }
}
}