namespace Umbraco.Cms.Core.Events
{
    public class EventNameExtractorResult
    {
        public EventNameExtractorError? Error { get; private set; }
        public string? Name { get; private set; }

        public EventNameExtractorResult(string? name)
        {
            Name = name;
        }

        public EventNameExtractorResult(EventNameExtractorError? error)
        {
            Error = error;
        }
    }
}
