| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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;
- }
- }
- }
|