mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 07:11:10 +00:00
Adds deletion and restore for music library items.
This commit is contained in:
1 parent
98515dc5e8
commit
f9ad8b2fc5
224 files changed
+22384
-1360
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Albums;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a music album that the user deleted and can restore.
|
||||
/// </summary>
|
||||
/// <param name="Id">The unique identifier of the album.</param>
|
||||
/// <param name="LibraryId">The unique identifier of the media library the album belongs to.</param>
|
||||
/// <param name="ArtistId">The unique identifier of the artist the album belongs to.</param>
|
||||
/// <param name="ArtistName">The name of the artist the album belongs to.</param>
|
||||
/// <param name="Title">The title of the album.</param>
|
||||
/// <param name="DeletedOnUtc">The date and time when the album was deleted.</param>
|
||||
/// <param name="CoverPath">The relative path of the stored cover image of the album, when it has one.</param>
|
||||
public record DeletedAlbumResponse(
|
||||
Guid Id,
|
||||
Guid LibraryId,
|
||||
Guid ArtistId,
|
||||
string ArtistName,
|
||||
string Title,
|
||||
DateTime DeletedOnUtc,
|
||||
string? CoverPath
|
||||
);
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Artists;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a music artist that the user deleted and can restore.
|
||||
/// </summary>
|
||||
/// <param name="Id">The unique identifier of the artist.</param>
|
||||
/// <param name="LibraryId">The unique identifier of the media library the artist belongs to.</param>
|
||||
/// <param name="Name">The name of the artist.</param>
|
||||
/// <param name="DeletedOnUtc">The date and time when the artist was deleted.</param>
|
||||
/// <param name="CoverPath">The relative path of the stored cover image of the artist, when it has one.</param>
|
||||
public record DeletedArtistResponse(
|
||||
Guid Id,
|
||||
Guid LibraryId,
|
||||
string Name,
|
||||
DateTime DeletedOnUtc,
|
||||
string? CoverPath
|
||||
);
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.MediaLibrary.AudioLibrary.MusicLibrary.Tracks;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a music track that the user deleted and can restore.
|
||||
/// </summary>
|
||||
/// <param name="Id">The unique identifier of the track.</param>
|
||||
/// <param name="LibraryId">The unique identifier of the media library the track belongs to.</param>
|
||||
/// <param name="ArtistId">The unique identifier of the artist the track belongs to.</param>
|
||||
/// <param name="ArtistName">The name of the artist the track belongs to.</param>
|
||||
/// <param name="AlbumId">The unique identifier of the album the track belongs to.</param>
|
||||
/// <param name="AlbumTitle">The title of the album the track belongs to.</param>
|
||||
/// <param name="Title">The title of the track.</param>
|
||||
/// <param name="Path">The file system path of the track.</param>
|
||||
/// <param name="DeletedOnUtc">The date and time when the track was deleted.</param>
|
||||
public record DeletedTrackResponse(
|
||||
Guid Id,
|
||||
Guid LibraryId,
|
||||
Guid ArtistId,
|
||||
string ArtistName,
|
||||
Guid AlbumId,
|
||||
string AlbumTitle,
|
||||
string Title,
|
||||
string Path,
|
||||
DateTime DeletedOnUtc
|
||||
);
|
||||
Reference in new issue
Block a user