using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Editors;
namespace Umbraco.Web.Models.ContentEditing
{
///
/// A model representing a content base item to be saved
///
[DataContract(Name = "content", Namespace = "")]
public abstract class ContentBaseItemSave : ContentItemBasic, IHaveUploadedFiles
where TPersisted : IContentBase
{
protected ContentBaseItemSave()
{
UploadedFiles = new List();
}
///
/// The action to perform when saving this content item
///
[DataMember(Name = "action", IsRequired = true)]
[Required]
public ContentSaveAction Action { get; set; }
[IgnoreDataMember]
public List UploadedFiles { get; private set; }
}
}