|
8 | 8 | using System.Text;
|
9 | 9 | using System.Threading;
|
10 | 10 | using System.Threading.Tasks;
|
11 |
| -using static Ipfs.Http.CoreApi.FilestoreApi; |
12 | 11 |
|
13 |
| -namespace Ipfs.Http.CoreApi |
| 12 | +namespace Ipfs.Http |
14 | 13 | {
|
15 |
| - /// <summary> |
16 |
| - /// Concrete implementation of <see cref="IFilestoreApi"/>. |
17 |
| - /// </summary> |
| 14 | + /// <inheritdoc/> |
18 | 15 | public class FilestoreApi : IFilestoreApi
|
19 | 16 | {
|
20 | 17 | private IpfsClient ipfs;
|
21 | 18 |
|
| 19 | + /// <inheritdoc/> |
22 | 20 | internal FilestoreApi(IpfsClient ipfs)
|
23 | 21 | {
|
24 | 22 | this.ipfs = ipfs;
|
25 | 23 | }
|
26 | 24 |
|
27 |
| - /// <summary> |
28 |
| - /// List async api for <see cref="IFilestoreApi"/>. |
29 |
| - /// </summary> |
30 |
| - /// <param name="cid"></param> |
31 |
| - /// <param name="token"></param> |
32 |
| - /// <param name="fileOrder"></param> |
33 |
| - /// <returns></returns> |
34 |
| - public async Task<IFilesStoreApiObjectResponse> ListAsync(string cid, CancellationToken token, bool fileOrder) |
| 25 | + /// <inheritdoc/> |
| 26 | + public async Task<IFilestoreApiObjectResponse> ListAsync(string cid, bool fileOrder, CancellationToken token) |
35 | 27 | {
|
36 | 28 | var json = await ipfs.DoCommandAsync("filestore/ls", token, cid, fileOrder.ToString());
|
37 | 29 |
|
38 | 30 | return JsonConvert.DeserializeObject<FilestoreObjectResponse>(json);
|
39 | 31 | }
|
40 | 32 |
|
41 |
| - /// <summary> |
42 |
| - /// Object verification api for <see cref="IFilestoreApi"/>. |
43 |
| - /// </summary> |
44 |
| - /// <param name="cid"></param> |
45 |
| - /// <param name="fileOrder"></param> |
46 |
| - /// <param name="token"></param> |
47 |
| - /// <returns></returns> |
48 |
| - public async Task<IFilesStoreApiObjectResponse> VerifyObjectsAsync(string cid, bool fileOrder, CancellationToken token) |
| 33 | + /// <inheritdoc/> |
| 34 | + public async Task<IFilestoreApiObjectResponse> VerifyObjectsAsync(string cid, bool fileOrder, CancellationToken token) |
49 | 35 | {
|
50 | 36 | var json = await ipfs.DoCommandAsync("filestore/verify", token, cid, fileOrder.ToString());
|
51 | 37 |
|
52 | 38 | return JsonConvert.DeserializeObject<FilestoreObjectResponse>(json);
|
53 | 39 | }
|
54 | 40 |
|
55 |
| - /// <summary> |
56 |
| - /// Executes Dups command in <see cref="IFilestoreApi"/>. |
57 |
| - /// </summary> |
58 |
| - /// <param name="token"></param> |
59 |
| - /// <returns></returns> |
| 41 | + /// <inheritdoc/> |
60 | 42 | public async Task<IDupsResponse> DupsAsync(CancellationToken token)
|
61 | 43 | {
|
62 | 44 | var json = await ipfs.DoCommandAsync("filestore/dups", token);
|
|
0 commit comments