2020-04-15 15:29:29 +00:00
|
|
|
#nullable enable
|
|
|
|
|
2020-04-15 06:01:31 +00:00
|
|
|
using System;
|
|
|
|
using MediaBrowser.Model.Notifications;
|
|
|
|
|
|
|
|
namespace Jellyfin.Api.Models.NotificationDtos
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The notification DTO.
|
|
|
|
/// </summary>
|
|
|
|
public class NotificationDto
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the notification ID. Defaults to an empty string.
|
|
|
|
/// </summary>
|
|
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the notification's user ID. Defaults to an empty string.
|
|
|
|
/// </summary>
|
|
|
|
public string UserId { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the notification date.
|
|
|
|
/// </summary>
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
2020-04-15 15:29:29 +00:00
|
|
|
/// Gets or sets a value indicating whether the notification has been read. Defaults to false.
|
2020-04-15 06:01:31 +00:00
|
|
|
/// </summary>
|
2020-04-15 15:29:29 +00:00
|
|
|
public bool IsRead { get; set; } = false;
|
2020-04-15 06:01:31 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2020-04-15 15:29:29 +00:00
|
|
|
/// Gets or sets the notification's name. Defaults to an empty string.
|
2020-04-15 06:01:31 +00:00
|
|
|
/// </summary>
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
2020-04-15 15:29:29 +00:00
|
|
|
/// Gets or sets the notification's description. Defaults to an empty string.
|
2020-04-15 06:01:31 +00:00
|
|
|
/// </summary>
|
|
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
2020-04-15 15:29:29 +00:00
|
|
|
/// Gets or sets the notification's URL. Defaults to null.
|
2020-04-15 06:01:31 +00:00
|
|
|
/// </summary>
|
2020-04-15 15:29:29 +00:00
|
|
|
public string? Url { get; set; }
|
2020-04-15 06:01:31 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the notification level.
|
|
|
|
/// </summary>
|
2020-04-15 15:29:29 +00:00
|
|
|
public NotificationLevel? Level { get; set; }
|
2020-04-15 06:01:31 +00:00
|
|
|
}
|
|
|
|
}
|