Standardizes boolean naming across the stack

This commit is contained in:
BinaryAlley committed 2026-09-26 10:12:12 +03:00
1 parent 6bd0cf6d42
commit 37dff6039d
78 files changed
+252 -252

No files matched your search

@@ -5,7 +5,7 @@ namespace Lumina.Presentation.Web.Common.DTO.Common;
/// <summary>
/// Data transfer object for the data shown on the error page.
/// </summary>
[DebuggerDisplay("RequestId: {RequestId}, ShowRequestId: {ShowRequestId}")]
[DebuggerDisplay("RequestId: {RequestId}, ShouldShowRequestId: {ShouldShowRequestId}")]
public class ErrorViewDto
{
/// <summary>
@@ -16,5 +16,5 @@ public class ErrorViewDto
/// <summary>
/// Gets a value indicating whether the request identifier should be shown.
/// </summary>
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
public bool ShouldShowRequestId => !string.IsNullOrEmpty(RequestId);
}
@@ -7,7 +7,7 @@ namespace Lumina.Presentation.Web.Common.DTO.Common;
/// <summary>
/// Response data transfer object for the JSON responses of the web application that do not carry a payload.
/// </summary>
/// <param name="Success">Whether the operation succeeded or not.</param>
/// <param name="IsSuccess">Whether the operation succeeded or not.</param>
public record SuccessResponse(
[property: JsonPropertyName("success")] bool Success
[property: JsonPropertyName("success")] bool IsSuccess
);
@@ -8,9 +8,9 @@ namespace Lumina.Presentation.Web.Common.DTO.Common;
/// Response data transfer object for the JSON responses of the web application that carry a payload.
/// </summary>
/// <typeparam name="TData">The type of the payload of the response.</typeparam>
/// <param name="Success">Whether the operation succeeded or not.</param>
/// <param name="IsSuccess">Whether the operation succeeded or not.</param>
/// <param name="Data">The payload of the response.</param>
public record SuccessResponse<TData>(
[property: JsonPropertyName("success")] bool Success,
[property: JsonPropertyName("success")] bool IsSuccess,
[property: JsonPropertyName("data")] TData? Data
);
@@ -9,11 +9,11 @@ namespace Lumina.Presentation.Web.Common.DTO.Themes;
/// Data transfer object for a conditional or repeating section in a theme template.
/// </summary>
/// <param name="Expression">The property path expression that controls the section.</param>
/// <param name="Inverted">Whether the section renders when the resolved value is falsy instead of truthy.</param>
/// <param name="IsInverted">Whether the section renders when the resolved value is falsy instead of truthy.</param>
/// <param name="Children">The template nodes rendered when the section is active.</param>
[DebuggerDisplay("Expression: {Expression}")]
public sealed record ThemeSectionNodeDto(
string Expression,
bool Inverted,
bool IsInverted,
IReadOnlyList<ThemeTemplateNodeDto> Children
) : ThemeTemplateNodeDto;
@@ -8,9 +8,9 @@ namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Directori
/// Represents a request to get the directories of a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the directories. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetDirectoriesRequest(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
);
@@ -8,9 +8,9 @@ namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files;
/// Represents a request to get the files at a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the files. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetFilesRequest(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
);
@@ -8,9 +8,9 @@ namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Files;
/// Represents a request to get the files of a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the tree files. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetTreeFilesRequest(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
);
@@ -8,9 +8,9 @@ namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Path;
/// Represents a request to check the existence of a file system path.
/// </summary>
/// <param name="Path">The file system path to check the exitence of. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden elements in the search results, or not. Optional.</param>
[DebuggerDisplay("Path: {Path}, IncludeHiddenElements: {IncludeHiddenElements}")]
/// <param name="ShouldIncludeHiddenElements">Whether to include hidden elements in the search results, or not. Optional.</param>
[DebuggerDisplay("Path: {Path}, ShouldIncludeHiddenElements: {ShouldIncludeHiddenElements}")]
public record CheckPathExistsRequest(
string? Path,
bool IncludeHiddenElements
bool ShouldIncludeHiddenElements
);