You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
585 B
22 lines
585 B
1 year ago
|
using StabilityMatrix.Core.Models.Database;
|
||
|
|
||
|
namespace StabilityMatrix.Core.Services;
|
||
|
|
||
|
public interface IImageIndexService
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Gets a list of local images that start with the given path prefix
|
||
|
/// </summary>
|
||
|
Task<IReadOnlyList<LocalImageFile>> GetLocalImagesByPrefix(string pathPrefix);
|
||
|
|
||
|
/// <summary>
|
||
|
/// Refreshes the index of local images
|
||
|
/// </summary>
|
||
|
Task RefreshIndex(string subPath = "");
|
||
|
|
||
|
/// <summary>
|
||
|
/// Refreshes the index of local images in the background
|
||
|
/// </summary>
|
||
|
void BackgroundRefreshIndex();
|
||
|
}
|