/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Data/Contracts/IQuickAccessService.cs
56 строк
2 KB
Yair
Code Quality: Updated license header
31 дек 2024, 05:03
31 дек 2024, 05:03
8436c6d
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Data.Contracts { public interface IQuickAccessService { /// <summary> /// Gets the list of quick access items /// </summary> /// <returns></returns> Task<IEnumerable<ShellFileItem>> GetPinnedFoldersAsync(); /// <summary> /// Pins a folder to the quick access list /// </summary> /// <param name="folderPath">The folder to pin</param> /// <returns></returns> Task PinToSidebarAsync(string folderPath); /// <summary> /// Pins folders to the quick access list /// </summary> /// <param name="folderPaths">The array of folders to pin</param> /// <returns></returns> Task PinToSidebarAsync(string[] folderPaths); /// <summary> /// Unpins a folder from the quick access list /// </summary> /// <param name="folderPath">The folder to unpin</param> /// <returns></returns> Task UnpinFromSidebarAsync(string folderPath); /// <summary> /// Unpins folders from the quick access list /// </summary> /// <param name="folderPaths">The array of folders to unpin</param> /// <returns></returns> Task UnpinFromSidebarAsync(string[] folderPaths); /// <summary> /// Checks if a folder is pinned to the quick access list /// </summary> /// <param name="folderPath">The path of the folder</param> /// <returns>true if the item is pinned</returns> bool IsItemPinned(string folderPath); /// <summary> /// Saves a state of pinned folder items in the sidebar /// </summary> /// <param name="items">The array of items to save</param> /// <returns></returns> Task SaveAsync(string[] items); } }