| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using Abp;
- using Abp.Notifications;
- namespace ContractService.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 SendKeyPointAlarmMsg(List<UserIdentifier> users, KeyPointNotificationData data)
- {
- return Task.CompletedTask;
- }
- public Task SendKeyPointExpireMsg(List<UserIdentifier> users, KeyPointNotificationData data)
- {
- 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;
- }
- }
- }
|