21 lines
552 B
C#
21 lines
552 B
C#
using System;
|
|
|
|
namespace Umbraco.Web.Macros
|
|
{
|
|
// represents the content of a macro
|
|
public class MacroContent
|
|
{
|
|
// gets or sets the text content
|
|
public string Text { get; set; }
|
|
|
|
// gets or sets the date the content was generated
|
|
public DateTime Date { get; set; } = DateTime.Now;
|
|
|
|
// a value indicating whether the content is empty
|
|
public bool IsEmpty => Text is null;
|
|
|
|
// gets an empty macro content
|
|
public static MacroContent Empty { get; } = new MacroContent();
|
|
}
|
|
}
|