mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05:11:10 +00:00
Covers the favorites feature and the playlist and favorite pagination changes with unit, integration and security tests, and fixtures for the new request, response, DTO and entity types. Also fixes the issues found while covering the commit: declares FavoriteMediaKind.None as the default value and rejects it in every favorite operation; queues the favorite added domain event only after the persisted favorite is read back; and preserves the private, no-store cache header on view pages after the antiforgery and session middlewares overwrite it.
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using System.Diagnostics;
|
|
#endregion
|
|
|
|
namespace Lumina.Presentation.Web.Common.Enums.Favorites;
|
|
|
|
/// <summary>
|
|
/// Enumeration for the kinds of media item that can be marked as a favorite.
|
|
/// </summary>
|
|
[DebuggerDisplay("{ToString()}")]
|
|
public enum FavoriteMediaKind
|
|
{
|
|
/// <summary>
|
|
/// No media kind. Used as the default value; it is not a kind that can be marked as a favorite.
|
|
/// </summary>
|
|
None = 0,
|
|
|
|
/// <summary>
|
|
/// A favorite that references an artist of a music library.
|
|
/// </summary>
|
|
MusicArtist,
|
|
|
|
/// <summary>
|
|
/// A favorite that references an album of a music library.
|
|
/// </summary>
|
|
MusicAlbum,
|
|
|
|
/// <summary>
|
|
/// A favorite that references a track of a music library.
|
|
/// </summary>
|
|
MusicTrack,
|
|
|
|
/// <summary>
|
|
/// A favorite that references a book of a book library.
|
|
/// </summary>
|
|
Book,
|
|
|
|
/// <summary>
|
|
/// A favorite that references a video file. Planned: video libraries are not catalogued yet, so this kind cannot be favorited.
|
|
/// </summary>
|
|
Video,
|
|
|
|
/// <summary>
|
|
/// A favorite that references a photo. Planned: photo libraries are not catalogued yet, so this kind cannot be favorited.
|
|
/// </summary>
|
|
Photo,
|
|
}
|