Advertisement
oldhowl

Untitled

Feb 13th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. public class Notification : NotificationBase
  2.     {
  3.         public string Descriminator { get; private set; }
  4.         public bool IsRead { get; private set; }
  5.         public int ItemId { get; private set; }
  6.         public NotificationType Type { get; private set; }
  7.  
  8.         public Notification()
  9.         {
  10.             //EF
  11.         }
  12.        
  13.         public Notification(
  14.             int userId,
  15.             string message,
  16.             int itemId,
  17.             NotificationType notificationType
  18.         )
  19.             : base(
  20.                 userId,
  21.                 message)
  22.         {
  23.             ItemId = itemId;
  24.             Type = notificationType;
  25.         }
  26.  
  27.         public void Readed() => IsRead = true;
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement