Small UI changes (#3787)
This commit is contained in:
parent
50a052e412
commit
5b8a643d82
203 changed files with 369 additions and 446 deletions
|
|
@ -5,7 +5,7 @@ using API.Entities.Enums;
|
|||
namespace API.DTOs.Filtering;
|
||||
#nullable enable
|
||||
|
||||
public class FilterDto
|
||||
public sealed record FilterDto
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of Formats you want to be returned. An empty list will return all formats back
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace API.DTOs.Filtering;
|
||||
|
||||
public class LanguageDto
|
||||
public sealed record LanguageDto
|
||||
{
|
||||
public required string IsoCode { get; set; }
|
||||
public required string Title { get; set; }
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
/// <summary>
|
||||
/// Represents a range between two int/float/double
|
||||
/// </summary>
|
||||
public class Range<T>
|
||||
public sealed record Range<T>
|
||||
{
|
||||
public T? Min { get; init; }
|
||||
public T? Max { get; init; }
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// Represents the Reading Status. This is a flag and allows multiple statues
|
||||
/// </summary>
|
||||
public class ReadStatus
|
||||
public sealed record ReadStatus
|
||||
{
|
||||
public bool NotRead { get; set; } = true;
|
||||
public bool InProgress { get; set; } = true;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// Sorting Options for a query
|
||||
/// </summary>
|
||||
public class SortOptions
|
||||
public sealed record SortOptions
|
||||
{
|
||||
public SortField SortField { get; set; }
|
||||
public bool IsAscending { get; set; } = true;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// <summary>
|
||||
/// For requesting an encoded filter to be decoded
|
||||
/// </summary>
|
||||
public class DecodeFilterDto
|
||||
public sealed record DecodeFilterDto
|
||||
{
|
||||
public string EncodedFilter { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace API.DTOs.Filtering.v2;
|
||||
|
||||
public class FilterStatementDto
|
||||
public sealed record FilterStatementDto
|
||||
{
|
||||
public FilterComparison Comparison { get; set; }
|
||||
public FilterField Field { get; set; }
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace API.DTOs.Filtering.v2;
|
|||
/// <summary>
|
||||
/// Metadata filtering for v2 API only
|
||||
/// </summary>
|
||||
public class FilterV2Dto
|
||||
public sealed record FilterV2Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// Not used in the UI.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue