mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Adds a restore action for soft deleted bundled themes
This commit is contained in:
1 parent
15945c2e56
commit
7e54c990ad
49 files changed
+1666
-26
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Requests.Themes;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to restore a soft deleted bundled theme.
|
||||
/// </summary>
|
||||
/// <param name="ThemeId">The manifest id of the theme to restore. Required.</param>
|
||||
[DebuggerDisplay("ThemeId: {ThemeId}")]
|
||||
public record RestoreThemeRequest(
|
||||
string? ThemeId
|
||||
);
|
||||
@@ -19,6 +19,7 @@ namespace Lumina.Contracts.Responses.Themes;
|
||||
/// <param name="InstallSource">The source the theme was installed from.</param>
|
||||
/// <param name="IsCurrent">Whether the theme is the currently active one.</param>
|
||||
/// <param name="InstalledAtUtc">The UTC timestamp at which the theme was installed.</param>
|
||||
/// <param name="IsDeleted">Whether the theme was deleted by the user, which is only possible for bundled themes.</param>
|
||||
[DebuggerDisplay("ThemeId: {ThemeId}, Name: {Name}")]
|
||||
public record ThemeResponse(
|
||||
Guid Id,
|
||||
@@ -30,5 +31,6 @@ public record ThemeResponse(
|
||||
string? PreviewPath,
|
||||
ThemeInstallSource InstallSource,
|
||||
bool? IsCurrent,
|
||||
DateTime InstalledAtUtc
|
||||
DateTime InstalledAtUtc,
|
||||
bool IsDeleted
|
||||
);
|
||||
Reference in new issue
Block a user