2020-04-14 23:01:31 -07: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 08:29:29 -07:00
|
|
|
/// Gets or sets a value indicating whether the notification has been read. Defaults to false.
|
2020-04-14 23:01:31 -07:00
|
|
|
/// </summary>
|
2020-04-15 08:29:29 -07:00
|
|
|
public bool IsRead { get; set; } = false;
|
2020-04-14 23:01:31 -07:00
|
|
|
|
|
|
|
/// <summary>
|
2020-04-15 08:29:29 -07:00
|
|
|
/// Gets or sets the notification's name. Defaults to an empty string.
|
2020-04-14 23:01:31 -07:00
|
|
|
/// </summary>
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
2020-04-15 08:29:29 -07:00
|
|
|
/// Gets or sets the notification's description. Defaults to an empty string.
|
2020-04-14 23:01:31 -07:00
|
|
|
/// </summary>
|
|
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
/// <summary>
|
2020-04-19 12:19:15 -07:00
|
|
|
/// Gets or sets the notification's URL. Defaults to an empty string.
|
2020-04-14 23:01:31 -07:00
|
|
|
/// </summary>
|
2020-04-19 12:19:15 -07:00
|
|
|
public string Url { get; set; } = string.Empty;
|
2020-04-14 23:01:31 -07:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the notification level.
|
|
|
|
/// </summary>
|
2020-04-19 12:19:15 -07:00
|
|
|
public NotificationLevel Level { get; set; }
|
2020-04-14 23:01:31 -07:00
|
|
|
}
|
|
|
|
}
|