|
1 | 1 | namespace LearningHub.Nhs.AdminUI.Interfaces |
2 | 2 | { |
3 | | - using System.IO; |
4 | | - using System.Threading.Tasks; |
5 | | - using Azure.Storage.Files.Shares.Models; |
| 3 | + using System.Collections.Generic; |
| 4 | + using System.IO; |
| 5 | + using System.Threading.Tasks; |
| 6 | + using Azure.Storage.Files.Shares.Models; |
| 7 | + using LearningHub.Nhs.Models.Resource; |
6 | 8 |
|
7 | | - /// <summary> |
8 | | - /// Defines the <see cref="IFileService" />. |
9 | | - /// </summary> |
10 | | - public interface IFileService |
11 | | - { |
12 | 9 | /// <summary> |
13 | | - /// The DeleteChunkDirectory. |
| 10 | + /// Defines the <see cref="IFileService" />. |
14 | 11 | /// </summary> |
15 | | - /// <param name="directoryRef">Directory ref.</param> |
16 | | - /// <param name="chunks">Chunks.</param> |
17 | | - /// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns> |
18 | | - Task DeleteChunkDirectory(string directoryRef, int chunks); |
| 12 | + public interface IFileService |
| 13 | + { |
| 14 | + /// <summary> |
| 15 | + /// The DeleteChunkDirectory. |
| 16 | + /// </summary> |
| 17 | + /// <param name="directoryRef">Directory ref.</param> |
| 18 | + /// <param name="chunks">Chunks.</param> |
| 19 | + /// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns> |
| 20 | + Task DeleteChunkDirectory(string directoryRef, int chunks); |
19 | 21 |
|
20 | | - /// <summary> |
21 | | - /// The DownloadFileAsync. |
22 | | - /// </summary> |
23 | | - /// <param name="filePath">File path.</param> |
24 | | - /// <param name="fileName">File name.</param> |
25 | | - /// <returns>A <see cref="Task{TResult}"/> representing the result of the asynchronous operation.</returns> |
26 | | - Task<ShareFileDownloadInfo> DownloadFileAsync(string filePath, string fileName); |
| 22 | + /// <summary> |
| 23 | + /// The DownloadFileAsync. |
| 24 | + /// </summary> |
| 25 | + /// <param name="filePath">File path.</param> |
| 26 | + /// <param name="fileName">File name.</param> |
| 27 | + /// <returns>A <see cref="Task{TResult}"/> representing the result of the asynchronous operation.</returns> |
| 28 | + Task<ShareFileDownloadInfo> DownloadFileAsync(string filePath, string fileName); |
27 | 29 |
|
28 | | - /// <summary> |
29 | | - /// The ProcessFile. |
30 | | - /// </summary> |
31 | | - /// <param name="fileBytes">The fileBytes<see cref="Stream"/>.</param> |
32 | | - /// <param name="fileName">The fileName<see cref="string"/>.</param> |
33 | | - /// <param name="directoryRef">The directoryRef<see cref="string"/>.</param> |
34 | | - /// <param name="originalFileName">The originalFileName<see cref="string"/>.</param> |
35 | | - /// <returns>The <see cref="string"/>.</returns> |
36 | | - Task<string> ProcessFile(Stream fileBytes, string fileName, string directoryRef = "", string originalFileName = null); |
37 | | - } |
| 30 | + /// <summary> |
| 31 | + /// The ProcessFile. |
| 32 | + /// </summary> |
| 33 | + /// <param name="fileBytes">The fileBytes<see cref="Stream"/>.</param> |
| 34 | + /// <param name="fileName">The fileName<see cref="string"/>.</param> |
| 35 | + /// <param name="directoryRef">The directoryRef<see cref="string"/>.</param> |
| 36 | + /// <param name="originalFileName">The originalFileName<see cref="string"/>.</param> |
| 37 | + /// <returns>The <see cref="string"/>.</returns> |
| 38 | + Task<string> ProcessFile(Stream fileBytes, string fileName, string directoryRef = "", string originalFileName = null); |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// The PurgeResourceFile. |
| 42 | + /// </summary> |
| 43 | + /// <param name="vm">The vm.<see cref="ResourceVersionExtendedViewModel"/>.</param> |
| 44 | + /// <param name="filePaths">.</param> |
| 45 | + /// <returns>The <see cref="Task"/>.</returns> |
| 46 | + Task PurgeResourceFile(ResourceVersionExtendedViewModel vm = null, List<string> filePaths = null); |
| 47 | + } |
38 | 48 | } |
0 commit comments