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
{
///
public Dictionary> ModelIndex { get; } = new();
///
public Task RefreshIndex()
{
return Task.CompletedTask;
}
///
public IEnumerable GetFromModelIndex(SharedFolderType types)
{
return Array.Empty();
}
///
public Task> FindAsync(SharedFolderType type)
{
return Task.FromResult(Enumerable.Empty());
}
///
public Task> FindByHashAsync(string hashBlake3)
{
return Task.FromResult(Enumerable.Empty());
}
///
public Task RemoveModelAsync(LocalModelFile model)
{
return Task.FromResult(false);
}
public Task CheckModelsForUpdates()
{
return Task.CompletedTask;
}
///
public void BackgroundRefreshIndex() { }
}