Adds media consumption rules and centralizes authorization role names

This commit is contained in:
BinaryAlley committed 2026-10-23 20:58:52 +03:00
1 parent 3e32068573
commit 8a5cb9116e
56 files changed
+767 -80

No files matched your search

@@ -0,0 +1,22 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaConsumption;
/// <summary>
/// Enumeration for the states of a media consumption session.
/// </summary>
public enum ConsumptionStatus
{
/// <summary>
/// The consumption session started and has not ended yet.
/// </summary>
InProgress,
/// <summary>
/// The consumption session reached its explicit completion or the completion threshold of its library.
/// </summary>
Completed,
/// <summary>
/// The consumption session ended before it completed.
/// </summary>
Stopped
}
@@ -0,0 +1,17 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaConsumption;
/// <summary>
/// Enumeration for the kinds of position that a media consumption session can report.
/// </summary>
public enum MediaPositionKind
{
/// <summary>
/// The position is a time offset within the media item.
/// </summary>
TimeOffset,
/// <summary>
/// The position is an opaque locator within the media item, such as a reading location of a book.
/// </summary>
Location
}
@@ -0,0 +1,52 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
/// <summary>
/// Enumeration for the kinds of media items.
/// </summary>
public enum MediaKind
{
/// <summary>
/// No media kind. Used as the default value; it is not a valid kind for a media item.
/// </summary>
None = 0,
/// <summary>
/// A track of a music library.
/// </summary>
MusicTrack,
/// <summary>
/// An episode of a podcast.
/// </summary>
PodcastEpisode,
/// <summary>
/// An audiobook.
/// </summary>
Audiobook,
/// <summary>
/// A movie.
/// </summary>
Movie,
/// <summary>
/// An episode of a TV show.
/// </summary>
TvEpisode,
/// <summary>
/// A book of a written content library.
/// </summary>
Book,
/// <summary>
/// A photo.
/// </summary>
Photo,
/// <summary>
/// A video file.
/// </summary>
Video
}