From 7a699c3fa974016f670b7856ea11abbbefdf98b1 Mon Sep 17 00:00:00 2001 From: Mole Date: Wed, 24 Mar 2021 14:29:09 +0100 Subject: [PATCH] Add notification classes --- .../DictionaryItemDeletedNotification.cs | 15 ++++++++++++++ .../DictionaryItemDeletingNotification.cs | 20 +++++++++++++++++++ .../DictionaryItemSavedNotification.cs | 20 +++++++++++++++++++ .../DictionaryItemSavingNotification.cs | 20 +++++++++++++++++++ .../LanguageDeletedNotification.cs | 15 ++++++++++++++ .../LanguageDeletingNotification.cs | 20 +++++++++++++++++++ .../LanguageSavedNotification.cs | 20 +++++++++++++++++++ .../LanguageSavingNotification.cs | 20 +++++++++++++++++++ 8 files changed, 150 insertions(+) create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletedNotification.cs create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletingNotification.cs create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavedNotification.cs create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavingNotification.cs create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletedNotification.cs create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletingNotification.cs create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/LanguageSavedNotification.cs create mode 100644 src/Umbraco.Infrastructure/Services/Notifications/LanguageSavingNotification.cs diff --git a/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletedNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletedNotification.cs new file mode 100644 index 0000000000..3d3b9588d0 --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletedNotification.cs @@ -0,0 +1,15 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class DictionaryItemDeletedNotification : DeletedNotification + { + public DictionaryItemDeletedNotification(IDictionaryItem target, EventMessages messages) : base(target, messages) + { + } + } +} diff --git a/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletingNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletingNotification.cs new file mode 100644 index 0000000000..ff85e00a81 --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemDeletingNotification.cs @@ -0,0 +1,20 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class DictionaryItemDeletingNotification : DeletingNotification + { + public DictionaryItemDeletingNotification(IDictionaryItem target, EventMessages messages) : base(target, messages) + { + } + + public DictionaryItemDeletingNotification(IEnumerable target, EventMessages messages) : base(target, messages) + { + } + } +} diff --git a/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavedNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavedNotification.cs new file mode 100644 index 0000000000..3a64e35979 --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavedNotification.cs @@ -0,0 +1,20 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class DictionaryItemSavedNotification : SavedNotification + { + public DictionaryItemSavedNotification(IDictionaryItem target, EventMessages messages) : base(target, messages) + { + } + + public DictionaryItemSavedNotification(IEnumerable target, EventMessages messages) : base(target, messages) + { + } + } +} diff --git a/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavingNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavingNotification.cs new file mode 100644 index 0000000000..5f3d94697e --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/DictionaryItemSavingNotification.cs @@ -0,0 +1,20 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class DictionaryItemSavingNotification : SavingNotification + { + public DictionaryItemSavingNotification(IDictionaryItem target, EventMessages messages) : base(target, messages) + { + } + + public DictionaryItemSavingNotification(IEnumerable target, EventMessages messages) : base(target, messages) + { + } + } +} diff --git a/src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletedNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletedNotification.cs new file mode 100644 index 0000000000..cba1c59406 --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletedNotification.cs @@ -0,0 +1,15 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class LanguageDeletedNotification : DeletedNotification + { + public LanguageDeletedNotification(ILanguage target, EventMessages messages) : base(target, messages) + { + } + } +} diff --git a/src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletingNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletingNotification.cs new file mode 100644 index 0000000000..79215e25af --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/LanguageDeletingNotification.cs @@ -0,0 +1,20 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class LanguageDeletingNotification : DeletingNotification + { + public LanguageDeletingNotification(ILanguage target, EventMessages messages) : base(target, messages) + { + } + + public LanguageDeletingNotification(IEnumerable target, EventMessages messages) : base(target, messages) + { + } + } +} diff --git a/src/Umbraco.Infrastructure/Services/Notifications/LanguageSavedNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/LanguageSavedNotification.cs new file mode 100644 index 0000000000..87c3644df9 --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/LanguageSavedNotification.cs @@ -0,0 +1,20 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class LanguageSavedNotification : SavedNotification + { + public LanguageSavedNotification(ILanguage target, EventMessages messages) : base(target, messages) + { + } + + public LanguageSavedNotification(IEnumerable target, EventMessages messages) : base(target, messages) + { + } + } +} diff --git a/src/Umbraco.Infrastructure/Services/Notifications/LanguageSavingNotification.cs b/src/Umbraco.Infrastructure/Services/Notifications/LanguageSavingNotification.cs new file mode 100644 index 0000000000..db416799d9 --- /dev/null +++ b/src/Umbraco.Infrastructure/Services/Notifications/LanguageSavingNotification.cs @@ -0,0 +1,20 @@ +// Copyright (c) Umbraco. +// See LICENSE for more details. + +using System.Collections.Generic; +using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Models; + +namespace Umbraco.Cms.Infrastructure.Services.Notifications +{ + public class LanguageSavingNotification : SavingNotification + { + public LanguageSavingNotification(ILanguage target, EventMessages messages) : base(target, messages) + { + } + + public LanguageSavingNotification(IEnumerable target, EventMessages messages) : base(target, messages) + { + } + } +}