public EmailNotificationMessage Map(INotifierDataValue notifierData, EmailNotifierTemplate template, IIntranetMember receiver) { var message = new EmailNotificationMessage(); FillNoReplyFromProps(message); (string, string)[] tokens;
public PopupNotificationMessage Map(INotifierDataValue notifierData, PopupNotifierTemplate template, IIntranetUser receiver) { var message = new PopupNotificationMessage { ReceiverId = receiver.Id, NotificationType = NotificationTypeEnum.Welcome }; (string, string)[] tokens =
public UiNotificationMessage Map(INotifierDataValue notifierData, UiNotifierTemplate template, IIntranetUser receiver) { var message = new UiNotificationMessage { ReceiverId = receiver.Id, IsPinned = notifierData.IsPinned, IsPinActual = notifierData.IsPinActual }; (string, string)[] tokens;
public UiNotificationMessage Map(INotifierDataValue notifierData, UiNotifierTemplate template, IIntranetMember receiver) { var message = new UiNotificationMessage { ReceiverId = receiver.Id, IsPinned = notifierData.IsPinned, IsPinActual = notifierData.IsPinActual, //IsDesktopNotificationEnabled = template.IsDesktopNotificationEnabled }; (string, string)[] tokens;
internal UiNotificationMessage GetUiNotificationMessage( Guid receiverId, Enum activityType, Enum notificationType, INotifierDataValue newValue) { var notificationIdentity = new ActivityEventNotifierIdentity(activityType, notificationType, UiNotifierType); var template = _notificationSettingsService.Get <UiNotifierTemplate>(notificationIdentity).Template; var receiver = _intranetMemberService.Get(receiverId); var message = _notificationModelMapper.Map(newValue, template, receiver); return(message); }
public DesktopNotificationMessage Map(INotifierDataValue notifierData, DesktopNotifierTemplate template, IIntranetUser receiver) { var message = new DesktopNotificationMessage(); (string, string)[] tokens;