Files
Umbraco-CMS/src/Umbraco.Core/Models/PublishedContent/IPublishedContentModelFactory.cs

33 lines
1.2 KiB
C#
Raw Normal View History

2013-11-07 17:16:22 +01:00
namespace Umbraco.Core.Models.PublishedContent
{
/// <summary>
/// Provides the model creation service.
/// </summary>
public interface IPublishedContentModelFactory
2013-11-07 17:16:22 +01:00
{
/// <summary>
/// Creates a strongly-typed model representing a published content.
/// </summary>
/// <param name="content">The original published content.</param>
/// <returns>The strongly-typed model representing the published content, or the published content
/// itself it the factory has no model for that content type.</returns>
IPublishedContent CreateModel(IPublishedContent content);
2016-11-29 10:31:25 +01:00
// temp - dont break MB
//T CreateModel<T>(IPublishedFragment content);
// fixme
// and we'd need a
// PublishedContentModel = ContentModel : ContentWrapper
// PublishedFragmentModel = FragmentModel : FragmentWrapper
//
// ModelFactory.Meta.Model("thing").ClrType (find the our post?)
//
// then
// make a plan to get NestedContent in
// and an equivalent of Vorto with different syntax
//
// then
// VARIANTS ARCHITECTURE FFS!
2013-11-07 17:16:22 +01:00
}
2013-09-05 17:47:13 +02:00
}