NotificationDto.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using MediaBrowser.Model.Notifications;
  3. namespace Jellyfin.Api.Models.NotificationDtos
  4. {
  5. /// <summary>
  6. /// The notification DTO.
  7. /// </summary>
  8. public class NotificationDto
  9. {
  10. /// <summary>
  11. /// Gets or sets the notification ID. Defaults to an empty string.
  12. /// </summary>
  13. public string Id { get; set; } = string.Empty;
  14. /// <summary>
  15. /// Gets or sets the notification's user ID. Defaults to an empty string.
  16. /// </summary>
  17. public string UserId { get; set; } = string.Empty;
  18. /// <summary>
  19. /// Gets or sets the notification date.
  20. /// </summary>
  21. public DateTime Date { get; set; }
  22. /// <summary>
  23. /// Gets or sets a value indicating whether the notification has been read. Defaults to false.
  24. /// </summary>
  25. public bool IsRead { get; set; } = false;
  26. /// <summary>
  27. /// Gets or sets the notification's name. Defaults to an empty string.
  28. /// </summary>
  29. public string Name { get; set; } = string.Empty;
  30. /// <summary>
  31. /// Gets or sets the notification's description. Defaults to an empty string.
  32. /// </summary>
  33. public string Description { get; set; } = string.Empty;
  34. /// <summary>
  35. /// Gets or sets the notification's URL. Defaults to an empty string.
  36. /// </summary>
  37. public string Url { get; set; } = string.Empty;
  38. /// <summary>
  39. /// Gets or sets the notification level.
  40. /// </summary>
  41. public NotificationLevel Level { get; set; }
  42. }
  43. }