using System.Xml.Linq;
using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Models.Packaging
{
///
/// Compiled representation of a content base (Document or Media)
///
public class CompiledPackageContentBase
{
public static CompiledPackageContentBase Create(XElement xml) =>
new CompiledPackageContentBase
{
XmlData = xml,
ImportMode = xml.AttributeValue("importMode")
};
public string ImportMode { get; set; } //this is never used
///
/// The serialized version of the content
///
public XElement XmlData { get; set; }
}
}