namespace FastReport.Cloud.FastReport.Models
{
internal sealed class SearchOptions
{
///
/// Number of folder and files, that have to be skipped
///
public int? Skip { get; set; } = null;
///
/// Number of folder and files, that have to be returned
///
public int? Take { get; set; } = null;
///
/// Indicates a field to sort by
///
public FileSorting? OrderBy { get; set; } = null;
///
/// Indicates if sorting is descending
///
public bool? Desc { get; set; } = null;
public string SearchPattern { get; set; } = null;
///
/// Default search options pattern
///
public static SearchOptions Default => new SearchOptions();
}
internal enum FileSorting
{
None = 0,
CreatedTime = 1,
EditedTime = 2,
Size = 3,
Name = 4,
}
}