eliminates region sections

This commit is contained in:
BinaryAlley committed 2024-10-12 22:03:57 +03:00
1 parent 705c02b90d
commit 405fc1ff9a
370 files changed
+47 -1618

No files matched your search

@@ -10,10 +10,8 @@ namespace Lumina.Presentation.Web.Common.Models.Common;
[DebuggerDisplay("{Name}")]
public class GenreModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the name of the genre element of the media item.
/// </summary>
public string? Name { get; set; }
#endregion
}
@@ -10,7 +10,6 @@ namespace Lumina.Presentation.Web.Common.Models.Common;
[DebuggerDisplay("{LanguageName}")]
public class LanguageInfoModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the ISO 639-1 two-letter language code.
/// </summary>
@@ -25,5 +24,4 @@ public class LanguageInfoModel
/// Gets an optional native name of the language.
/// </summary>
public string? NativeName { get; set; }
#endregion
}
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Notifications;
using System;
#endregion
@@ -11,4 +11,8 @@ namespace Lumina.Presentation.Web.Common.Models.Common;
/// <param name="Id">The id of the notification.</param>
/// <param name="Message">The message of the notification.</param>
/// <param name="Type">The type of the notification.</param>
public record struct NotificationModel(Guid Id, string Message, NotificationType Type);
public record struct NotificationModel(
Guid Id,
string Message,
NotificationType Type
);
@@ -13,7 +13,6 @@ namespace Lumina.Presentation.Web.Common.Models.Common;
[DebuggerDisplay("{Title} ({Status})")]
public class ProblemDetailsModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the URI reference that identifies the problem type.
/// </summary>
@@ -50,5 +49,4 @@ public class ProblemDetailsModel
/// </summary>
[JsonExtensionData]
public IDictionary<string, JsonElement>? Extensions { get; set; }
#endregion
}
@@ -10,7 +10,6 @@ namespace Lumina.Presentation.Web.Common.Models.Common;
[DebuggerDisplay("{Value}/{MaxValue}")]
public abstract class RatingModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the numeric value of the rating.
/// </summary>
@@ -25,5 +24,4 @@ public abstract class RatingModel
/// Gets the optional number of votes or reviews this rating is based on.
/// </summary>
public int? VoteCount { get; set; }
#endregion
}
@@ -11,7 +11,6 @@ namespace Lumina.Presentation.Web.Common.Models.Common;
[DebuggerDisplay("{OriginalReleaseDate}")]
public class ReleaseInfoModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the optional original release date of the media item.
/// </summary>
@@ -42,5 +41,4 @@ public class ReleaseInfoModel
/// Gets the optional release version or edition. (e.g. "Original", "Director's Cut", "2.0")
/// </summary>
public string? ReleaseVersion { get; set; }
#endregion
}
@@ -10,10 +10,8 @@ namespace Lumina.Presentation.Web.Common.Models.Common;
[DebuggerDisplay("{Name}")]
public class TagModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the name of the tag element of the media item.
/// </summary>
public string? Name { get; set; }
#endregion
}
@@ -10,11 +10,8 @@ namespace Lumina.Presentation.Web.Common.Models.Configuration;
[DebuggerDisplay("{SECTION_NAME}")]
public class ServerConfigurationModel
{
#region ================================================================== FIELD MEMBERS ================================================================================
public const string SECTION_NAME = "ServerConfiguration";
#endregion
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the remote API server path.
/// </summary>
@@ -29,5 +26,4 @@ public class ServerConfigurationModel
/// Gets or sets the remote API server port.
/// </summary>
public required ushort Port { get; init; }
#endregion
}
@@ -10,7 +10,6 @@ namespace Lumina.Presentation.Web.Common.Models.FileManagement;
[DebuggerDisplay("{ContentType} (Data.Length)")]
public class BlobDataModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the binary data as a byte array.
/// </summary>
@@ -20,5 +19,4 @@ public class BlobDataModel
/// Gets or sets the content type (MIME type) of the blob data, such as "image/png" for an image or "application/pdf" for a PDF document.
/// </summary>
public string ContentType { get; set; } = null!;
#endregion
}
@@ -11,10 +11,8 @@ namespace Lumina.Presentation.Web.Common.Models.FileManagement;
[DebuggerDisplay("{Path}")]
public class DirectoryModel : FileSystemItemModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the children items of the directory.
/// </summary>
public List<FileSystemItemModel> Items { get; set; } = [];
#endregion
}
@@ -10,10 +10,8 @@ namespace Lumina.Presentation.Web.Common.Models.FileManagement;
[DebuggerDisplay("{Path}")]
public class FileModel : FileSystemItemModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the size of the file, in bytes
/// </summary>
public long Size { get; set; }
#endregion
}
@@ -11,7 +11,6 @@ namespace Lumina.Presentation.Web.Common.Models.FileManagement;
[DebuggerDisplay("{Path}")]
public abstract class FileSystemItemModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the full path to the file system item.
/// </summary>
@@ -31,5 +30,4 @@ public abstract class FileSystemItemModel
/// Gets or sets the modification date of the file system item.
/// </summary>
public DateTime DateModified { get; set; }
#endregion
}
@@ -12,7 +12,6 @@ namespace Lumina.Presentation.Web.Common.Models.FileManagement;
[DebuggerDisplay("{Path}")]
public class FileSystemTreeNodeModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the full path of the file or directory.
/// </summary>
@@ -42,5 +41,4 @@ public class FileSystemTreeNodeModel
/// Gets or sets the list of child nodes.
/// </summary>
public List<FileSystemTreeNodeModel> Children { get; set; } = [];
#endregion
}
@@ -11,10 +11,8 @@ namespace Lumina.Presentation.Web.Common.Models.FileManagement;
[DebuggerDisplay("{PlatformType}")]
public class FileSystemTypeModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the file system platform type.
/// </summary>
public PlatformType PlatformType { get; set; }
#endregion
}
@@ -10,10 +10,8 @@ namespace Lumina.Presentation.Web.Common.Models.FileManagement;
[DebuggerDisplay("{Path}")]
public class PathSegmentModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the returned path.
/// </summary>
public string Path { get; set; } = null!;
#endregion
}
@@ -13,7 +13,6 @@ namespace Lumina.Presentation.Web.Common.Models.Libraries;
[DebuggerDisplay("{Title}")]
public class LibraryModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the unique identifier of the library.
/// </summary>
@@ -33,5 +32,4 @@ public class LibraryModel
/// Gets or sets the collection of directories that contain the library files.
/// </summary>
public List<string> Paths { get; set; } = [];
#endregion
}
@@ -11,7 +11,6 @@ namespace Lumina.Presentation.Web.Common.Models.MediaContributors;
[DebuggerDisplay("{Name}")]
public class MediaContributorModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the name of the contributor.
/// </summary>
@@ -21,5 +20,4 @@ public class MediaContributorModel
/// Gets the role of the contributor.
/// </summary>
public MediaContributorRoleModel? Role { get; set; }
#endregion
}
@@ -10,7 +10,6 @@ namespace Lumina.Presentation.Web.Common.Models.MediaContributors;
[DebuggerDisplay("{DisplayName}")]
public class MediaContributorNameModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the name by which the contributor is popularly known.
/// </summary>
@@ -20,5 +19,4 @@ public class MediaContributorNameModel
/// Gets the legal name of the contributor.
/// </summary>
public string? LegalName { get; set; }
#endregion
}
@@ -10,7 +10,6 @@ namespace Lumina.Presentation.Web.Common.Models.MediaContributors;
[DebuggerDisplay("{Name}")]
public class MediaContributorRoleModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the value representing this object.
/// </summary>
@@ -20,5 +19,4 @@ public class MediaContributorRoleModel
/// Gets the category of this object.
/// </summary>
public string? Category { get; set; }
#endregion
}
@@ -11,7 +11,6 @@ namespace Lumina.Presentation.Web.Common.Models.UI;
[DebuggerDisplay("{Text}")]
public class ComboboxItem<TValue>
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the text of the item, that is visible to the user.
/// </summary>
@@ -26,5 +25,4 @@ public class ComboboxItem<TValue>
/// Gets or sets the property indicating whether this element can be selected or not.
/// </summary>
public bool IsEnabled { get; set; } = true;
#endregion
}
@@ -13,7 +13,6 @@ namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrar
[DebuggerDisplay("{Title}")]
public class BookModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets the Id of the media item.
/// </summary>
@@ -204,5 +203,4 @@ public class BookModel
/// Gets the optional time and date when the entity was updated.
/// </summary>
public DateTime? Updated { get; set; }
#endregion
}
@@ -12,10 +12,8 @@ namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrar
[DebuggerDisplay("{Value}/{MaxValue}")]
public class BookRatingModel : RatingModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the source of the book rating (e.g., a specific website or platform).
/// </summary>
public BookRatingSource? Source { get; set; }
#endregion
}
@@ -10,10 +10,8 @@ namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrar
[DebuggerDisplay("{Title}")]
public class BookSeriesModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the title of the book series.
/// </summary>
public string? Title { get; set; }
#endregion
}
@@ -11,7 +11,6 @@ namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary.BookLibrar
[DebuggerDisplay("{Value} ({Format})")]
public class IsbnModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the ISBN value.
/// </summary>
@@ -21,5 +20,4 @@ public class IsbnModel
/// Gets or sets the format of the ISBN (e.g., ISBN-10 or ISBN-13).
/// </summary>
public IsbnFormat? Format { get; set; }
#endregion
}
@@ -12,7 +12,6 @@ namespace Lumina.Presentation.Web.Common.Models.WrittenContentLibrary;
[DebuggerDisplay("{Title}")]
public class WrittenContentMetadataModel
{
#region ==================================================================== PROPERTIES =================================================================================
/// <summary>
/// Gets or sets the title of the written content.
/// </summary>
@@ -62,5 +61,4 @@ public class WrittenContentMetadataModel
/// Gets or sets the number of pages in the written content.
/// </summary>
public int? PageCount { get; set; }
#endregion
}