method results on a service, we've created a new temporary service that we will explicitly implement with an extension method to get it. This is temporary until v8 where we will just replace the original methods on the service with these methods and then remove this class.
28 lines
795 B
C#
28 lines
795 B
C#
using System.Runtime.Serialization;
|
|
using Umbraco.Web.UI;
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
{
|
|
[DataContract(Name = "notification", Namespace = "")]
|
|
public class Notification
|
|
{
|
|
public Notification()
|
|
{
|
|
|
|
}
|
|
|
|
public Notification(string header, string message, SpeechBubbleIcon notificationType)
|
|
{
|
|
Header = header;
|
|
Message = message;
|
|
NotificationType = notificationType;
|
|
}
|
|
|
|
[DataMember(Name = "header")]
|
|
public string Header { get; set; }
|
|
[DataMember(Name = "message")]
|
|
public string Message { get; set; }
|
|
[DataMember(Name = "type")]
|
|
public SpeechBubbleIcon NotificationType { get; set; }
|
|
}
|
|
} |