/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Data/Items/ShellOperationResult.cs
33 строки
985 B
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.Items { public sealed class ShellOperationResult { public ShellOperationResult() { Items = []; } /// <summary> /// File operation results: success and error code. Can contains multiple results for the same source file. /// E.g. if the shell shows a "replace" confirmation dialog, results can be both COPYENGINE_S_PENDING and COPYENGINE_S_USER_IGNORED. /// </summary> public List<ShellOperationItemResult> Items { get; set; } /// <summary> /// Final results of a file operation. Contains last status for each source file. /// </summary> public List<ShellOperationItemResult> Final => Items.GroupBy(x => x.Source).Select(x => x.Last()).ToList(); } public sealed class ShellOperationItemResult { public bool Succeeded { get; set; } public int HResult { get; set; } public string Source { get; set; } public string Destination { get; set; } } }