mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Adds media library cover image
This commit is contained in:
1 parent
89debaeaad
commit
666a739b1d
43 files changed
+1170
-94
No files matched your search
@@ -10,9 +10,11 @@ namespace Lumina.Contracts.Requests.MediaLibrary.Management;
|
||||
/// <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>
|
||||
/// <param name="CoverImage">The path of the image file used as the cover for the library. Optional.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record AddLibraryRequest(
|
||||
string? Title,
|
||||
string? LibraryType,
|
||||
string[]? ContentLocations
|
||||
string[]? ContentLocations,
|
||||
string? CoverImage
|
||||
);
|
||||
@@ -2,6 +2,7 @@
|
||||
using Lumina.Domain.Common.Enums.MediaLibrary;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.MediaLibrary.Management;
|
||||
@@ -14,11 +15,13 @@ namespace Lumina.Contracts.Requests.MediaLibrary.Management;
|
||||
/// <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>
|
||||
/// <param name="CoverImage">The path of the image file used as the cover for the library. Optional.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
public record class UpdateLibraryRequest(
|
||||
Guid Id,
|
||||
Guid UserId,
|
||||
string? Title,
|
||||
string? LibraryType,
|
||||
string[]? ContentLocations
|
||||
string[]? ContentLocations,
|
||||
string? CoverImage
|
||||
);
|
||||
@@ -15,6 +15,7 @@ namespace Lumina.Contracts.Responses.MediaLibrary.Management;
|
||||
/// <param name="Title">The title of the media library.</param>
|
||||
/// <param name="LibraryType">The type of the media library.</param>
|
||||
/// <param name="ContentLocations">The file system paths of the directories where the media library elements are located.</param>
|
||||
/// <param name="CoverImage">The path of the image file used as the cover for the library.</param>
|
||||
/// <param name="CreatedOnUtc">The date and time when the library was created.</param>
|
||||
/// <param name="UpdatedOnUtc">The optional date and time when the library was updated.</param>
|
||||
[DebuggerDisplay("Title: {Title}")]
|
||||
@@ -24,6 +25,7 @@ public record LibraryResponse(
|
||||
string Title,
|
||||
LibraryType LibraryType,
|
||||
List<string> ContentLocations,
|
||||
string? CoverImage,
|
||||
DateTime CreatedOnUtc,
|
||||
DateTime? UpdatedOnUtc
|
||||
);
|
||||
Reference in new issue
Block a user