Rework select component (#14)
Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
public class CategoriesDto
|
||||
{
|
||||
public IEnumerable<PlatformDto>? Platforms { get; set; }
|
||||
public IEnumerable<PropertyDto>? Properties { get; set; }
|
||||
public IEnumerable<TagDto>? Tags { get; set; }
|
||||
public IEnumerable<DeveloperDto>? Developers { get; set; }
|
||||
public IEnumerable<PublisherDto>? Publishers { get; set; }
|
||||
public List<PlatformDto>? Platforms { get; set; }
|
||||
public List<PropertyDto>? Properties { get; set; }
|
||||
public List<TagDto>? Tags { get; set; }
|
||||
public List<DeveloperDto>? Developers { get; set; }
|
||||
public List<PublisherDto>? Publishers { get; set; }
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ public class GameDto
|
||||
public double? StorageSpace { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public int Interest { get; set; } = 3;
|
||||
public IEnumerable<PlatformDto>? Platforms { get; set; }
|
||||
public IEnumerable<PropertyDto>? Properties { get; set; }
|
||||
public IEnumerable<TagDto>? Tags { get; set; }
|
||||
public IEnumerable<PublisherDto>? Publishers { get; set; }
|
||||
public IEnumerable<DeveloperDto>? Developers { get; set; }
|
||||
public List<PlatformDto>? Platforms { get; set; }
|
||||
public List<PropertyDto>? Properties { get; set; }
|
||||
public List<TagDto>? Tags { get; set; }
|
||||
public List<PublisherDto>? Publishers { get; set; }
|
||||
public List<DeveloperDto>? Developers { get; set; }
|
||||
}
|
||||
@@ -1,16 +1,19 @@
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class GameFilterDto
|
||||
{
|
||||
public IEnumerable<string>? Platforms { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public IEnumerable<string>? Tags { get; set; }
|
||||
public IEnumerable<string>? Properties { get; set; }
|
||||
public int? MinInterest { get; set; }
|
||||
public int? MaxInterest { get; set; }
|
||||
public IEnumerable<int>? ReleaseYears { get; set; }
|
||||
public IEnumerable<int>? PublisherIds { get; set; }
|
||||
public IEnumerable<int>? DeveloperIds { get; set; }
|
||||
public IEnumerable<int>? CreationUserIds { get; set; }
|
||||
public IEnumerable<int>? ModificationUserIds { get; set; }
|
||||
public SortTypeDto? SortType { get; set; }
|
||||
public SortPropertyDto? SortProperty { get; set; }
|
||||
public string? Title { get; set; }
|
||||
public List<PlatformDto>? Platforms { get; set; }
|
||||
public List<PropertyDto>? Properties { get; set; }
|
||||
public List<TagDto>? Tags { get; set; }
|
||||
public List<PublisherDto>? Publishers { get; set; }
|
||||
public List<DeveloperDto>? Developers { get; set; }
|
||||
public int MinInterest { get; set; } = 1;
|
||||
public int MaxInterest { get; set; } = 5;
|
||||
public List<int>? ReleaseYears { get; set; }
|
||||
public int? MinStorageSize { get; set; }
|
||||
public int? MaxStorageSize { get; set; }
|
||||
}
|
||||
|
||||
7
src/GameIdeas/GameIdeas.Shared/Dto/SortPropertyDto.cs
Normal file
7
src/GameIdeas/GameIdeas.Shared/Dto/SortPropertyDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class SortPropertyDto
|
||||
{
|
||||
public Func<GameDto, object>? SortProperty { get; set; }
|
||||
public string Label { get; set; } = string.Empty;
|
||||
}
|
||||
9
src/GameIdeas/GameIdeas.Shared/Dto/SortTypeDto.cs
Normal file
9
src/GameIdeas/GameIdeas.Shared/Dto/SortTypeDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using GameIdeas.Shared.Enum;
|
||||
|
||||
namespace GameIdeas.Shared.Dto;
|
||||
|
||||
public class SortTypeDto
|
||||
{
|
||||
public SortType SortType { get; set; } = SortType.Ascending;
|
||||
public string Label { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user