using System.Text;
namespace Umbraco.Cms.Core.Notifications;
///
/// Contains event data for the event.
///
public class ModelBindingErrorNotification : INotification
{
///
/// Initializes a new instance of the class.
///
public ModelBindingErrorNotification(Type sourceType, Type modelType, StringBuilder message)
{
SourceType = sourceType;
ModelType = modelType;
Message = message;
}
///
/// Gets the type of the source object.
///
public Type SourceType { get; }
///
/// Gets the type of the view model.
///
public Type ModelType { get; }
///
/// Gets the message string builder.
///
/// Handlers of the event can append text to the message.
public StringBuilder Message { get; }
}