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.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.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<BackOfficeNotification> Notifications { get; }
Property Value
Type | Description |
---|---|
List<BackOfficeNotification> |
Value
The generic value
Declaration
[DataMember(Name = "value")]
public T Value { get; }
Property Value
Type | Description |
---|---|
T |