mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:24:55 +08:00
27 lines
764 B
C#
27 lines
764 B
C#
using BetterLyrics.WinUI3.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BetterLyrics.WinUI3.Services.FileSystemService
|
|
{
|
|
public interface IUnifiedFileSystem : IDisposable
|
|
{
|
|
Task<bool> ConnectAsync();
|
|
/// <summary>
|
|
/// 从流拉取
|
|
/// </summary>
|
|
/// <param name="parentFolder"></param>
|
|
/// <returns></returns>
|
|
Task<List<FileCacheEntity>> GetFilesAsync(FileCacheEntity? parentFolder = null);
|
|
/// <summary>
|
|
/// 打开流
|
|
/// </summary>
|
|
/// <param name="file"></param>
|
|
/// <returns></returns>
|
|
Task<Stream?> OpenReadAsync(FileCacheEntity file);
|
|
Task DisconnectAsync();
|
|
}
|
|
}
|