Files
MilkyShots/Butter/Dtos/Asset/AssetSearchOptionsDto.cs
T
REDCODE d89f6f0a21 fix: address PR #142 review issues
- Fix timer leak: implement IDisposable on AlbumAssetPicker
- Remove unnecessary full-table COUNT in GetFolderGroups
- Remove dead DirectoryEntryDto.AssetCount
- Remove unused ExistingAssetIds parameter
- Remove redundant .Distinct() after .Union()
- Extract hardcoded page size 150 to named constant
- Rename AssetSearchOptionsDto.Unassigned to Unlinked for consistency
- BrowseAssets returns 404 for missing folderId instead of 200 empty
2026-07-17 00:00:37 +02:00

42 lines
1.4 KiB
C#

using Butter.Types;
namespace Butter.Dtos.Asset;
/// <summary>
/// Represents the search options for a detailed search of assets.
/// </summary>
public class AssetSearchOptionsDto: PagedSearchParametersDto {
/// <summary>
/// Gets or sets the start date for filtering assets by date range.
/// </summary>
public string? StartDate { get; set; }
/// <summary>
/// Gets or sets the end date for filtering assets by date range.
/// </summary>
public string? EndDate { get; set; }
/// <summary>
/// Gets or sets the optional asset type filter.
/// </summary>
public EAssetType? Type { get; set; }
/// <summary>
/// Gets or sets the seed for deterministic random ordering.
/// </summary>
public Guid? Seed { get; set; }
/// <summary>
/// Gets or sets whether to order results randomly instead of by date.
/// </summary>
public bool Random { get; set; }
/// <summary>
/// Gets or sets whether to filter for assets not assigned to any album (unlinked).
/// </summary>
public bool Unlinked { get; set; }
/// <summary>
/// Gets or sets the folder ID to filter assets by their scan folder.
/// </summary>
public Guid? FolderId { get; set; }
/// <summary>
/// Gets or sets the uploader user ID to filter assets by their uploader.
/// </summary>
public Guid? UploadedBy { get; set; }
}