Files
Umbraco-CMS/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs
Bjarke Berg 0151c435f1 Netcore: Package support for media + media types (#9547)
* Add support for media when installing a package

* clean up

* Fix tests

* Add support for media when installing a package

* clean up

* Fix tests

* moved tests + test data

* Migrated package tests + resources

* Fix issue with media picker on package page, was empty after save.

* Added missing files

* Fix casing issue of resources

* Added test for media

* Fix tests for linux

* Fix test

* Fix issue with move media..

* Fix issue with adding files to packages

* Add MediaType permissions.

* Fix test

* Fix test

* Retry flaky tests, and added TODOs to fix those

* new attempt to fix test

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2020-12-16 22:26:47 +01:00

47 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
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<XElement> MediaTypes { get; set; } // TODO: make strongly typed
public IEnumerable<CompiledPackageContentBase> Documents { get; set; }
public IEnumerable<CompiledPackageContentBase> Media { get; set; }
}
}