mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 10:54:55 +08:00
27 lines
770 B
C#
27 lines
770 B
C#
using BetterLyrics.WinUI3.Models.Entities;
|
|
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<FilesIndexItem>> GetFilesAsync(FilesIndexItem? parentFolder = null);
|
|
/// <summary>
|
|
/// 打开流
|
|
/// </summary>
|
|
/// <param name="file"></param>
|
|
/// <returns></returns>
|
|
Task<Stream?> OpenReadAsync(FilesIndexItem file);
|
|
Task DisconnectAsync();
|
|
}
|
|
}
|