Files
Umbraco-CMS/src/Umbraco.Web/Models/ContentEditing/CodeFileDisplay.cs
T

33 lines
950 B
C#
Raw Normal View History

2017-01-09 22:54:28 +01:00
using System;
using System.Collections.Generic;
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 = "")]
public class CodeFileDisplay : INotificationModel
2017-01-09 22:54:28 +01:00
{
[DataMember(Name = "virtualPath", IsRequired = true)]
2017-01-09 22:54:28 +01:00
public string VirtualPath { get; set; }
[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; }
[DataMember(Name = "fileType", IsRequired = true)]
public string FileType { get; set; }
2017-01-09 22:54:28 +01:00
[DataMember(Name = "snippet")]
[ReadOnly(true)]
2017-01-09 22:54:28 +01:00
public string Snippet { get; set; }
public List<Notification> Notifications { get; private set; }
2017-01-09 22:54:28 +01:00
}
}