using System;
using System.Text;
using Umbraco.Core.Events;
namespace Umbraco.Web.Common.ModelBinders
{
///
/// Contains event data for the event.
///
public class ModelBindingError : INotification
{
///
/// Initializes a new instance of the class.
///
public ModelBindingError(Type sourceType, Type modelType, StringBuilder message)
{
SourceType = sourceType;
ModelType = modelType;
Message = message;
}
///
/// Gets the type of the source object.
///
public Type SourceType { get; set; }
///
/// Gets the type of the view model.
///
public Type ModelType { get; set; }
///
/// Gets the message string builder.
///
/// Handlers of the event can append text to the message.
public StringBuilder Message { get; }
///
/// Gets or sets a value indicating whether the application should restart.
///
public bool Restart { get; set; }
}
}