mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Implements tests for commit dfd979ec1e
This commit is contained in:
1 parent
d8adf3c1b6
commit
968061e89a
111 files changed
+19955
-292
No files matched your search
+6
-8
@@ -1,6 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -10,13 +8,13 @@ namespace Lumina.Contracts.Requests.MediaConsumption;
|
||||
/// 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>
|
||||
/// <param name="MediaKind">The name of the kind of media to restrict the statistics to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range, in UTC, as a text value. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range, in UTC, as a text value. Optional.</param>
|
||||
[DebuggerDisplay("MediaKind: {MediaKind}; FromUtc: {FromUtc}; ToUtc: {ToUtc}")]
|
||||
public sealed record GetAllUsersConsumptionStatisticsRequest(
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
string? MediaKind,
|
||||
string? FromUtc,
|
||||
string? ToUtc
|
||||
);
|
||||
@@ -1,6 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -10,13 +8,13 @@ namespace Lumina.Contracts.Requests.MediaConsumption;
|
||||
/// Represents a request for getting the consumption statistics of a 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>
|
||||
/// <param name="MediaKind">The name of the kind of media to restrict the statistics to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range, in UTC, as a text value. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range, in UTC, as a text value. Optional.</param>
|
||||
[DebuggerDisplay("MediaKind: {MediaKind}; FromUtc: {FromUtc}; ToUtc: {ToUtc}")]
|
||||
public sealed record GetConsumptionStatisticsRequest(
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
string? MediaKind,
|
||||
string? FromUtc,
|
||||
string? ToUtc
|
||||
);
|
||||
@@ -1,6 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -10,17 +8,17 @@ namespace Lumina.Contracts.Requests.MediaConsumption;
|
||||
/// Represents a request for getting a window of the most consumed media items of a user.
|
||||
/// </summary>
|
||||
/// <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="MediaKind">The name of the kind of media to restrict the history to. 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>
|
||||
/// <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="FromUtc">The inclusive start of the date range, in UTC, as a text value. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range, in UTC, as a text value. Optional.</param>
|
||||
[DebuggerDisplay("MediaKind: {MediaKind}; CurrentPage: {CurrentPage}; PerPage: {PerPage}")]
|
||||
public sealed record GetMostConsumedRequest(
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
string? MediaKind,
|
||||
int? CurrentPage,
|
||||
int? PerPage,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
string? FromUtc,
|
||||
string? ToUtc
|
||||
);
|
||||
@@ -1,6 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -10,17 +8,17 @@ namespace Lumina.Contracts.Requests.MediaConsumption;
|
||||
/// Represents a request for getting a window of the recently consumed media items of a user.
|
||||
/// </summary>
|
||||
/// <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="MediaKind">The name of the kind of media to restrict the history to. 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>
|
||||
/// <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="FromUtc">The inclusive start of the date range, in UTC, as a text value. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range, in UTC, as a text value. Optional.</param>
|
||||
[DebuggerDisplay("MediaKind: {MediaKind}; CurrentPage: {CurrentPage}; PerPage: {PerPage}")]
|
||||
public sealed record GetRecentlyConsumedRequest(
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
string? MediaKind,
|
||||
int? CurrentPage,
|
||||
int? PerPage,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
string? FromUtc,
|
||||
string? ToUtc
|
||||
);
|
||||
@@ -1,6 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
@@ -10,13 +8,13 @@ namespace Lumina.Contracts.Requests.MediaConsumption;
|
||||
/// Represents a request for getting the consumption statistics of the tags of a 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>
|
||||
/// <param name="MediaKind">The name of the kind of media to restrict the statistics to. Optional.</param>
|
||||
/// <param name="FromUtc">The inclusive start of the date range, in UTC, as a text value. Optional.</param>
|
||||
/// <param name="ToUtc">The inclusive end of the date range, in UTC, as a text value. Optional.</param>
|
||||
[DebuggerDisplay("MediaKind: {MediaKind}; FromUtc: {FromUtc}; ToUtc: {ToUtc}")]
|
||||
public sealed record GetTagConsumptionRequest(
|
||||
string? LibraryId,
|
||||
MediaKind? MediaKind,
|
||||
DateTime? FromUtc,
|
||||
DateTime? ToUtc
|
||||
string? MediaKind,
|
||||
string? FromUtc,
|
||||
string? ToUtc
|
||||
);
|
||||
Reference in new issue
Block a user