Remove unused notification endpoints (#8952)
parent
f32d4040f2
commit
f2200c97cb
@ -1,51 +0,0 @@
|
|||||||
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>
|
|
||||||
/// Gets or sets a value indicating whether the notification has been read. Defaults to false.
|
|
||||||
/// </summary>
|
|
||||||
public bool IsRead { get; set; } = false;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the notification's name. Defaults to an empty string.
|
|
||||||
/// </summary>
|
|
||||||
public string Name { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the notification's description. Defaults to an empty string.
|
|
||||||
/// </summary>
|
|
||||||
public string Description { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the notification's URL. Defaults to an empty string.
|
|
||||||
/// </summary>
|
|
||||||
public string Url { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the notification level.
|
|
||||||
/// </summary>
|
|
||||||
public NotificationLevel Level { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Jellyfin.Api.Models.NotificationDtos
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// A list of notifications with the total record count for pagination.
|
|
||||||
/// </summary>
|
|
||||||
public class NotificationResultDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the current page of notifications.
|
|
||||||
/// </summary>
|
|
||||||
public IReadOnlyList<NotificationDto> Notifications { get; set; } = Array.Empty<NotificationDto>();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the total number of notifications.
|
|
||||||
/// </summary>
|
|
||||||
public int TotalRecordCount { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
using MediaBrowser.Model.Notifications;
|
|
||||||
|
|
||||||
namespace Jellyfin.Api.Models.NotificationDtos
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// The notification summary DTO.
|
|
||||||
/// </summary>
|
|
||||||
public class NotificationsSummaryDto
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the number of unread notifications.
|
|
||||||
/// </summary>
|
|
||||||
public int UnreadCount { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the maximum unread notification level.
|
|
||||||
/// </summary>
|
|
||||||
public NotificationLevel? MaxUnreadNotificationLevel { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in new issue