Adds Macro and MacroProperty implementations U4-928. Adds enums used for MacroTypes and MacroPropertyTypeBaseTypes
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System.Runtime.Serialization;
|
|
using Umbraco.Core.Models.EntityBase;
|
|
|
|
namespace Umbraco.Core.Models
|
|
{
|
|
/// <summary>
|
|
/// Defines a Property for a Macro
|
|
/// </summary>
|
|
public interface IMacroProperty : IValueObject
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the Alias of the Property
|
|
/// </summary>
|
|
[DataMember]
|
|
string Alias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Name of the Property
|
|
/// </summary>
|
|
[DataMember]
|
|
string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Sort Order of the Property
|
|
/// </summary>
|
|
[DataMember]
|
|
int SortOrder { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Type for this Property
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The MacroPropertyTypes acts as a plugin for Macros.
|
|
/// All types was previously contained in the database, but has been ported to code.
|
|
/// </remarks>
|
|
[DataMember]
|
|
IMacroPropertyType PropertyType { get; set; }
|
|
}
|
|
} |