UserNotificationInfoWithNotificationInfoExtensions.cs 772 B

123456789101112131415161718
  1. namespace Abp.Notifications
  2. {
  3. /// <summary>
  4. /// Extension methods for <see cref="UserNotificationInfoWithNotificationInfo"/>.
  5. /// </summary>
  6. public static class UserNotificationInfoWithNotificationInfoExtensions
  7. {
  8. /// <summary>
  9. /// Converts <see cref="UserNotificationInfoWithNotificationInfo"/> to <see cref="UserNotification"/>.
  10. /// </summary>
  11. public static UserNotification ToUserNotification(this UserNotificationInfoWithNotificationInfo userNotificationInfoWithNotificationInfo)
  12. {
  13. return userNotificationInfoWithNotificationInfo.UserNotification.ToUserNotification(
  14. userNotificationInfoWithNotificationInfo.Notification.ToTenantNotification()
  15. );
  16. }
  17. }
  18. }