NotificationDto.cs 1.6 KB

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