Class ModelWithNotifications<T>
A generic model supporting notifications, this is useful for returning any model type to include notifications from api controllers
Inheritance
System.Object
Namespace: Umbraco.Web.Models.ContentEditing
Assembly: Umbraco.Web.dll
Syntax
[DataContract(Name = "model", Namespace = "")]
public class ModelWithNotifications<T> : INotificationModel
Type Parameters
Name | Description |
---|---|
T |
Constructors
View SourceModelWithNotifications(T)
Declaration
public ModelWithNotifications(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value |
Properties
View SourceNotifications
The notifications
Declaration
[DataMember(Name = "notifications")]
public List<Notification> Notifications { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Notification> |
Value
The generic value
Declaration
[DataMember(Name = "value")]
public T Value { get; }
Property Value
Type | Description |
---|---|
T |