Multi-Platform Package Manager for Stable Diffusion
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.

36 lines
967 B

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using StabilityMatrix.Core.Models;
using StabilityMatrix.Core.Models.Database;
using StabilityMatrix.Core.Services;
namespace StabilityMatrix.Avalonia.DesignData;
public class MockModelIndexService : IModelIndexService
{
/// <inheritdoc />
public Dictionary<SharedFolderType, List<LocalModelFile>> ModelIndex { get; } = new();
/// <inheritdoc />
public Task RefreshIndex()
{
return Task.CompletedTask;
}
/// <inheritdoc />
public IEnumerable<LocalModelFile> GetFromModelIndex(SharedFolderType types)
{
return Array.Empty<LocalModelFile>();
}
/// <inheritdoc />
public Task<IReadOnlyList<LocalModelFile>> GetModelsOfType(SharedFolderType type)
{
return Task.FromResult<IReadOnlyList<LocalModelFile>>(new List<LocalModelFile>());
}
/// <inheritdoc />
1 year ago
public void BackgroundRefreshIndex() { }
}