Notification.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.Notifications
  4. {
  5. public class Notification
  6. {
  7. public string Id { get; set; }
  8. public string UserId { get; set; }
  9. public DateTime Date { get; set; }
  10. public bool IsRead { get; set; }
  11. public string Name { get; set; }
  12. public string Description { get; set; }
  13. public string Url { get; set; }
  14. public NotificationLevel Level { get; set; }
  15. public Notification()
  16. {
  17. Date = DateTime.UtcNow;
  18. }
  19. }
  20. public class NotificationRequest
  21. {
  22. public string Name { get; set; }
  23. public string Description { get; set; }
  24. public string Url { get; set; }
  25. public NotificationLevel Level { get; set; }
  26. public List<string> UserIds { get; set; }
  27. public DateTime Date { get; set; }
  28. public NotificationRequest()
  29. {
  30. UserIds = new List<string>();
  31. Date = DateTime.UtcNow;
  32. }
  33. }
  34. }