22 lines
611 B
C#
22 lines
611 B
C#
|
|
using Umbraco.Core.Models.PublishedContent;
|
|||
|
|
using Umbraco.Web.PublishedCache.NuCache.DataSource;
|
|||
|
|
|
|||
|
|
namespace Umbraco.Web.PublishedCache.NuCache
|
|||
|
|
{
|
|||
|
|
// what's needed to actually build a content node
|
|||
|
|
struct ContentNodeKit
|
|||
|
|
{
|
|||
|
|
public ContentNode Node;
|
|||
|
|
public int ContentTypeId;
|
|||
|
|
public ContentData DraftData;
|
|||
|
|
public ContentData PublishedData;
|
|||
|
|
|
|||
|
|
public bool IsEmpty { get { return Node == null; } }
|
|||
|
|
|
|||
|
|
public void Build(PublishedContentType contentType)
|
|||
|
|
{
|
|||
|
|
Node.SetContentTypeAndData(contentType, DraftData, PublishedData);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|