2016-06-12 18:49:05 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
2017-01-04 14:12:45 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2016-06-12 18:49:05 +02:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2017-01-04 14:12:45 +00:00
|
|
|
|
using Umbraco.Core.Models.Validation;
|
2016-06-12 18:49:05 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
|
|
|
|
{
|
|
|
|
|
|
[DataContract(Name = "template", Namespace = "")]
|
2017-01-10 12:29:30 +11:00
|
|
|
|
public class TemplateDisplay : INotificationModel
|
2016-06-12 18:49:05 +02:00
|
|
|
|
{
|
2017-01-04 14:12:45 +00:00
|
|
|
|
|
2016-06-12 18:49:05 +02:00
|
|
|
|
[DataMember(Name = "id")]
|
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
2017-01-04 14:12:45 +00:00
|
|
|
|
[Required]
|
2016-06-12 18:49:05 +02:00
|
|
|
|
[DataMember(Name = "name")]
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
2017-01-09 13:05:20 +00:00
|
|
|
|
[Required]
|
2016-06-12 18:49:05 +02:00
|
|
|
|
[DataMember(Name = "alias")]
|
|
|
|
|
|
public string Alias { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "content")]
|
|
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "path")]
|
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "virtualPath")]
|
|
|
|
|
|
public string VirtualPath { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "masterTemplateAlias")]
|
|
|
|
|
|
public string MasterTemplateAlias { get; set; }
|
2017-01-10 12:29:30 +11:00
|
|
|
|
|
2017-01-13 13:20:38 +01:00
|
|
|
|
[DataMember(Name = "isMasterTemplate")]
|
|
|
|
|
|
public bool IsMasterTemplate { get; set; }
|
|
|
|
|
|
|
2017-01-10 12:29:30 +11:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used to add custom localized messages/strings to the response for the app to use for localized UI purposes.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "notifications")]
|
|
|
|
|
|
public List<Notification> Notifications { get; private set; }
|
2016-06-12 18:49:05 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|