using System.Threading.Tasks; using Abp; using Abp.Notifications; namespace WeOnlineApp.CommonManager.Notifications { public sealed class NullNotificationManager : INotificationManager { public static NullNotificationManager Instance { get; } = new NullNotificationManager(); public Task WelcomeToSystemAsync() { return Task.CompletedTask; } public Task SendMsgAsync(UserIdentifier user, string message) { return Task.CompletedTask; } public Task SendMsgAsync(UserIdentifier user, string message, NotificationSeverity severity) { return Task.CompletedTask; } public Task SendMsgAsync(string msgName, string message) { return Task.CompletedTask; } public Task SendMsgAsync(string msgName, string message, NotificationSeverity severity) { return Task.CompletedTask; } public Task SendMessageAsync(UserIdentifier user, string msgName, SendMsgNotificationData data, NotificationSeverity severity) { return Task.CompletedTask; } public Task SendMessageAsync(string msgName, SendMsgNotificationData data, NotificationSeverity severity) { return Task.CompletedTask; } public Task SendMessageAsync(UserIdentifier user, string message, NotificationSeverity severity = NotificationSeverity.Info) { return Task.CompletedTask; } public Task SendMessageAsync(string msgName, string message, NotificationSeverity severity = NotificationSeverity.Info) { return Task.CompletedTask; } } }