2017-01-09 22:54:28 +01:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2017-01-16 16:50:22 +01:00
|
|
|
using System.ComponentModel;
|
2017-01-09 22:54:28 +01:00
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
|
|
|
{
|
|
|
|
|
[DataContract(Name = "scriptFile", Namespace = "")]
|
2017-01-16 16:50:22 +01:00
|
|
|
public class CodeFileDisplay : INotificationModel
|
2017-01-09 22:54:28 +01:00
|
|
|
{
|
2017-01-16 16:50:22 +01:00
|
|
|
[DataMember(Name = "virtualPath", IsRequired = true)]
|
2017-01-09 22:54:28 +01:00
|
|
|
public string VirtualPath { get; set; }
|
2017-01-16 16:50:22 +01:00
|
|
|
|
|
|
|
|
[DataMember(Name = "name", IsRequired = true)]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "content", IsRequired = true)]
|
2017-01-09 22:54:28 +01:00
|
|
|
public string Content { get; set; }
|
2017-01-16 16:50:22 +01:00
|
|
|
|
|
|
|
|
[DataMember(Name = "fileType", IsRequired = true)]
|
|
|
|
|
public string FileType { get; set; }
|
|
|
|
|
|
2017-01-09 22:54:28 +01:00
|
|
|
[DataMember(Name = "snippet")]
|
2017-01-16 16:50:22 +01:00
|
|
|
[ReadOnly(true)]
|
2017-01-09 22:54:28 +01:00
|
|
|
public string Snippet { get; set; }
|
2017-01-16 16:50:22 +01:00
|
|
|
|
|
|
|
|
public List<Notification> Notifications { get; private set; }
|
2017-01-09 22:54:28 +01:00
|
|
|
}
|
|
|
|
|
}
|