mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Adds the media-neutral library statistics page and separates tags from genres
This commit is contained in:
1 parent
a61fbf407c
commit
00d7eff777
118 files changed
+6132
-1154
No files matched your search
-16
@@ -1,16 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.PlayHistory;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting a page of the most played tracks of the current user.
|
||||
/// </summary>
|
||||
/// <param name="CurrentPage">The one based page of tracks to return. Optional. Defaults to 1.</param>
|
||||
/// <param name="PerPage">The number of tracks per page. Optional. Defaults to 10.</param>
|
||||
[DebuggerDisplay("CurrentPage: {CurrentPage}; PerPage: {PerPage}")]
|
||||
public record GetMostPlayedRequest(
|
||||
int? CurrentPage,
|
||||
int? PerPage
|
||||
);
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.AudioLibrary.MusicLibrary.PlayHistory;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting a page of the recently played tracks of the current user.
|
||||
/// </summary>
|
||||
/// <param name="CurrentPage">The one based page of tracks to return. Optional. Defaults to 1.</param>
|
||||
/// <param name="PerPage">The number of tracks per page. Optional. Defaults to 10.</param>
|
||||
[DebuggerDisplay("CurrentPage: {CurrentPage}; PerPage: {PerPage}")]
|
||||
public record GetRecentlyPlayedRequest(
|
||||
int? CurrentPage,
|
||||
int? PerPage
|
||||
);
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to delete the consumption history of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose history is deleted. Optional; when omitted, the current user is used.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public sealed record ClearConsumptionHistoryRequest(
|
||||
string? UserId
|
||||
);
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to delete the resume points of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose resume points are deleted. Optional; when omitted, the current user is used.</param>
|
||||
/// <param name="LibraryId">The Id of the media library to restrict the deletion to. Optional.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}; LibraryId: {LibraryId}")]
|
||||
public sealed record ClearResumePointsRequest(
|
||||
string? UserId,
|
||||
string? LibraryId
|
||||
);
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.MediaConsumption;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to delete every consumption record of a media item.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose history is deleted. Optional; when omitted, the current user is used.</param>
|
||||
/// <param name="MediaKind">The kind of the consumed media item.</param>
|
||||
/// <param name="MediaItemId">The Id of the consumed media item.</param>
|
||||
/// <param name="LibraryId">The Id of the media library that contains the media item.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}; MediaKind: {MediaKind}; MediaItemId: {MediaItemId}")]
|
||||
public sealed record DeleteConsumptionItemHistoryRequest(
|
||||
string? UserId,
|
||||
MediaKind MediaKind,
|
||||
Guid MediaItemId,
|
||||
Guid LibraryId
|
||||
);
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.MediaConsumption;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting the consumption statistics of every user.
|
||||
/// </summary>
|
||||
/// <param name="LibraryId">The Id of the media library to restrict the statistics to. Optional.</param>
|
||||
/// <param name="MediaKind">The kind of media to restrict the statistics to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range. Optional.</param>
|
||||
[DebuggerDisplay("MediaKind: {MediaKind}; FromUtc: {FromUtc}; ToUtc: {ToUtc}")]
|
||||
public sealed record GetAllUsersConsumptionStatisticsRequest(
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
);
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.MediaConsumption;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting the consumption statistics of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose statistics are retrieved. Optional; when omitted, the current user is used.</param>
|
||||
/// <param name="LibraryId">The Id of the media library to restrict the statistics to. Optional.</param>
|
||||
/// <param name="MediaKind">The kind of media to restrict the statistics to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range. Optional.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}; MediaKind: {MediaKind}")]
|
||||
public sealed record GetConsumptionStatisticsRequest(
|
||||
string? UserId,
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
);
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.MediaConsumption;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting the consumption statistics of the genres of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose statistics are retrieved. Optional; when omitted, the current user is used.</param>
|
||||
/// <param name="LibraryId">The Id of the media library to restrict the statistics to. Optional.</param>
|
||||
/// <param name="MediaKind">The kind of media to restrict the statistics to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range. Optional.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}; MediaKind: {MediaKind}; FromUtc: {FromUtc}")]
|
||||
public sealed record GetGenreConsumptionRequest(
|
||||
string? UserId,
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
);
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.MediaConsumption;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting a window of the most consumed media items of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose history is retrieved. Optional; when omitted, the current user is used.</param>
|
||||
/// <param name="LibraryId">The Id of the media library to restrict the history to. Optional.</param>
|
||||
/// <param name="MediaKind">The kind of media to restrict the history to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range. Optional.</param>
|
||||
/// <param name="CurrentPage">The one based page of media items to return. Optional.</param>
|
||||
/// <param name="PerPage">The number of media items per page. Optional.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}; MediaKind: {MediaKind}; CurrentPage: {CurrentPage}")]
|
||||
public sealed record GetMostConsumedRequest(
|
||||
string? UserId,
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc,
|
||||
int? CurrentPage,
|
||||
int? PerPage
|
||||
);
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.MediaConsumption;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting a window of the recently consumed media items of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose history is retrieved. Optional; when omitted, the current user is used.</param>
|
||||
/// <param name="LibraryId">The Id of the media library to restrict the history to. Optional.</param>
|
||||
/// <param name="MediaKind">The kind of media to restrict the history to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range. Optional.</param>
|
||||
/// <param name="CurrentPage">The one based page of media items to return. Optional.</param>
|
||||
/// <param name="PerPage">The number of media items per page. Optional.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}; MediaKind: {MediaKind}; CurrentPage: {CurrentPage}")]
|
||||
public sealed record GetRecentlyConsumedRequest(
|
||||
string? UserId,
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc,
|
||||
int? CurrentPage,
|
||||
int? PerPage
|
||||
);
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.Enums.MediaConsumption;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.Library.Statistics;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for getting the consumption statistics of the tags of a user.
|
||||
/// </summary>
|
||||
/// <param name="UserId">The Id of the user whose statistics are retrieved. Optional; when omitted, the current user is used.</param>
|
||||
/// <param name="LibraryId">The Id of the media library to restrict the statistics to. Optional.</param>
|
||||
/// <param name="MediaKind">The kind of media to restrict the statistics to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range. Optional.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}; MediaKind: {MediaKind}; FromUtc: {FromUtc}")]
|
||||
public sealed record GetTagConsumptionRequest(
|
||||
string? UserId,
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
);
|
||||
Reference in new issue
Block a user