46 lines
2.0 KiB
C#
46 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Umbraco.Core.Models.Packaging
|
|
{
|
|
/// <summary>
|
|
/// The model of the package definition within an umbraco (zip) package file
|
|
/// </summary>
|
|
public class CompiledPackage : IPackageInfo
|
|
{
|
|
public FileInfo PackageFile { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
public string Version { get; set; }
|
|
public string Url { get; set; }
|
|
public string License { get; set; }
|
|
public string LicenseUrl { get; set; }
|
|
public Version UmbracoVersion { get; set; }
|
|
public RequirementsType UmbracoVersionRequirementsType { get; set; }
|
|
public string Author { get; set; }
|
|
public string AuthorUrl { get; set; }
|
|
public IList<string> Contributors { get; set; }
|
|
public string Readme { get; set; }
|
|
public string PackageView { get; set; }
|
|
public string IconUrl { get; set; }
|
|
|
|
public string Actions { get; set; } // TODO: Should we make this strongly typed to IEnumerable<PackageAction> ?
|
|
|
|
public PreInstallWarnings Warnings { get; set; } = new PreInstallWarnings();
|
|
|
|
public List<CompiledPackageFile> Files { get; set; } = new List<CompiledPackageFile>();
|
|
|
|
public IEnumerable<XElement> Macros { get; set; } // TODO: make strongly typed
|
|
public IEnumerable<XElement> Templates { get; set; } // TODO: make strongly typed
|
|
public IEnumerable<XElement> Stylesheets { get; set; } // TODO: make strongly typed
|
|
public IEnumerable<XElement> DataTypes { get; set; } // TODO: make strongly typed
|
|
public IEnumerable<XElement> Languages { get; set; } // TODO: make strongly typed
|
|
public IEnumerable<XElement> DictionaryItems { get; set; } // TODO: make strongly typed
|
|
public IEnumerable<XElement> DocumentTypes { get; set; } // TODO: make strongly typed
|
|
public IEnumerable<CompiledPackageDocument> Documents { get; set; }
|
|
}
|
|
}
|