Adds favorites and aligns playlist and favorite pagination

This commit is contained in:
BinaryAlley committed 2026-10-22 20:27:07 +03:00
1 parent 2e9f7d8496
commit 525ac1348d
193 files changed
+10944 -643

No files matched your search

@@ -0,0 +1,18 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.Favorites;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Requests.Favorites;
/// <summary>
/// Represents a request for marking a media item as a favorite of the current user.
/// </summary>
/// <param name="MediaKind">The kind of the media item to favorite. Required.</param>
/// <param name="MediaItemId">The Id of the media item to favorite. Required.</param>
[DebuggerDisplay("MediaKind: {MediaKind}; MediaItemId: {MediaItemId}")]
public record AddFavoriteRequest(
FavoriteMediaKind? MediaKind,
Guid? MediaItemId
);
@@ -0,0 +1,19 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.Favorites;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Requests.Favorites;
/// <summary>
/// Represents a request for finding out which media items of one kind are favorites of the current user.
/// </summary>
/// <param name="MediaKind">The kind of the media items to check. Required.</param>
/// <param name="MediaItemIds">The Ids of the media items to check, from 1 to 100. Required.</param>
[DebuggerDisplay("MediaKind: {MediaKind}")]
public record GetFavoriteStatusRequest(
FavoriteMediaKind? MediaKind,
List<Guid>? MediaItemIds
);
@@ -0,0 +1,19 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.Favorites;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Requests.Favorites;
/// <summary>
/// Represents a request for getting a window of the favorites of the current user.
/// </summary>
/// <param name="MediaKind">The kind of media item to restrict the favorites to. Optional; every kind is returned when omitted.</param>
/// <param name="CurrentPage">The one based page of favorites to return. Optional; defaults to 1 when a page size is provided.</param>
/// <param name="PerPage">The number of favorites per page. Optional; defaults to 200 when a page is provided. When both pagination parameters are omitted, every matching favorite is returned.</param>
[DebuggerDisplay("MediaKind: {MediaKind}; CurrentPage: {CurrentPage}; PerPage: {PerPage}")]
public record GetFavoritesRequest(
FavoriteMediaKind? MediaKind,
int? CurrentPage,
int? PerPage
);
@@ -5,12 +5,12 @@ using System.Diagnostics;
namespace Lumina.Contracts.Requests.Playlists;
/// <summary>
/// Represents a request for getting a window of the entries of a playlist of the current user.
/// Represents a request for getting a page of the entries of a playlist of the current user.
/// </summary>
/// <param name="Offset">The zero based position of the first entry to return. Optional; defaults to 0.</param>
/// <param name="Limit">The maximum number of entries to return, from 1 to 1000. Optional; defaults to 200.</param>
[DebuggerDisplay("Offset: {Offset}; Limit: {Limit}")]
/// <param name="CurrentPage">The one based page of entries to return. Optional; defaults to 1 when a page size is provided.</param>
/// <param name="PerPage">The number of entries per page. Optional; defaults to 200 when a page is provided. When both pagination parameters are omitted, every entry is returned.</param>
[DebuggerDisplay("CurrentPage: {CurrentPage}; PerPage: {PerPage}")]
public record GetPlaylistRequest(
int? Offset,
int? Limit
int? CurrentPage,
int? PerPage
);