Implements library management update library

This commit is contained in:
BinaryAlley committed 2024-11-17 21:02:10 +02:00
1 parent d0d53fd471
commit 291d1fa329
68 files changed
+1003 -110

No files matched your search

@@ -1,6 +1,4 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Common.Enums.MediaLibrary;
using System;
using System.Diagnostics;
#endregion
@@ -15,6 +13,6 @@ namespace Lumina.Contracts.Requests.MediaLibrary.Management;
[DebuggerDisplay("Title: {Title}")]
public record AddLibraryRequest(
string? Title,
LibraryType? LibraryType,
string? LibraryType,
string[]? ContentLocations
);
@@ -0,0 +1,15 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Requests.MediaLibrary.Management;
/// <summary>
/// Represents a request to get a media library by its Id.
/// </summary>
/// <param name="Id">The Id of the media library. Required.</param>
[DebuggerDisplay("Id: {Id}")]
public record GetLibraryRequest(
Guid Id
);
@@ -0,0 +1,24 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Common.Enums.MediaLibrary;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Requests.MediaLibrary.Management;
/// <summary>
/// Represents a request to update a media library.
/// </summary>
/// <param name="Id">The Id of the media library. Required.</param>
/// <param name="UserId">The Id of the user owning the media library. Required.</param>
/// <param name="Title">The title of the media library. Required.</param>
/// <param name="LibraryType">The type of the media library. Required.</param>
/// <param name="ContentLocations">The file system paths of the directories where the media library elements are located. Required.</param>
[DebuggerDisplay("Title: {Title}")]
public record class UpdateLibraryRequest(
Guid Id,
Guid UserId,
string? Title,
string? LibraryType,
string[]? ContentLocations
);