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.
 
 
 

53 lines
1.3 KiB

using System;
using System.Collections.Generic;
using System.Linq;
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<IEnumerable<LocalModelFile>> FindAsync(SharedFolderType type)
{
return Task.FromResult(Enumerable.Empty<LocalModelFile>());
}
/// <inheritdoc />
public Task<IEnumerable<LocalModelFile>> FindByHashAsync(string hashBlake3)
{
return Task.FromResult(Enumerable.Empty<LocalModelFile>());
}
/// <inheritdoc />
public Task<bool> RemoveModelAsync(LocalModelFile model)
{
return Task.FromResult(false);
}
public Task CheckModelsForUpdates()
{
return Task.CompletedTask;
}
/// <inheritdoc />
public void BackgroundRefreshIndex() { }
}