wasDAVClient – Diff between revs 1 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 3
Line 6... Line 6...
6 namespace wasDAVClient 6 namespace wasDAVClient
7 { 7 {
8 public interface IClient 8 public interface IClient
9 { 9 {
10 /// <summary> 10 /// <summary>
11 /// Specify the WebDAV hostname (required). 11 /// Specify the WebDAV hostname (required).
12 /// </summary> 12 /// </summary>
13 string Server { get; set; } 13 string Server { get; set; }
Line 14... Line 14...
14   14  
15 /// <summary> 15 /// <summary>
16 /// Specify the path of a WebDAV directory to use as 'root' (default: /) 16 /// Specify the path of a WebDAV directory to use as 'root' (default: /)
17 /// </summary> 17 /// </summary>
Line 18... Line 18...
18 string BasePath { get; set; } 18 string BasePath { get; set; }
19   19  
20 /// <summary> 20 /// <summary>
21 /// Specify an port (default: null = auto-detect) 21 /// Specify an port (default: null = auto-detect)
Line 22... Line 22...
22 /// </summary> 22 /// </summary>
23 int? Port { get; set; } 23 int? Port { get; set; }
24   24  
25 /// <summary> 25 /// <summary>
-   26 /// Specify the UserAgent (and UserAgent version) string to use in requests
26 /// Specify the UserAgent (and UserAgent version) string to use in requests 27 /// </summary>
27 /// </summary> 28 string UserAgent { get; set; }
28 string UserAgent { get; set; } 29  
29 /// <summary> 30 /// <summary>
Line 30... Line 31...
30 /// Specify the UserAgent (and UserAgent version) string to use in requests 31 /// Specify the UserAgent (and UserAgent version) string to use in requests
31 /// </summary> 32 /// </summary>
32 string UserAgentVersion { get; set; } 33 string UserAgentVersion { get; set; }
33   34  
34   35  
35 /// <summary> 36 /// <summary>
36 /// List all files present on the server. 37 /// List all files present on the server.
Line 37... Line 38...
37 /// </summary> 38 /// </summary>
38 /// <param name="path">List only files in this path</param> 39 /// <param name="path">List only files in this path</param>
39 /// <param name="depth">Recursion depth</param> 40 /// <param name="depth">Recursion depth</param>
40 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns> 41 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns>
41 Task<IEnumerable<Item>> List(string path = "/", int? depth = 1); 42 Task<IEnumerable<Item>> List(string path = "/", int? depth = 1);
Line 42... Line 43...
42   43  
43 /// <summary> 44 /// <summary>
44 /// Get folder information from the server. 45 /// Get folder information from the server.
45 /// </summary> 46 /// </summary>
46 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns> 47 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns>
Line 47... Line 48...
47 Task<Item> GetFolder(string path = "/"); 48 Task<Item> GetFolder(string path = "/");
48   49  
49 /// <summary> 50 /// <summary>
50 /// Get file information from the server. 51 /// Get file information from the server.
51 /// </summary> 52 /// </summary>
Line 52... Line 53...
52 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns> 53 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns>
53 Task<Item> GetFile(string path = "/"); 54 Task<Item> GetFile(string path = "/");
54   55  
55 /// <summary> 56 /// <summary>
56 /// Download a file from the server 57 /// Download a file from the server
57 /// </summary> 58 /// </summary>
58 /// <param name="remoteFilePath">Source path and filename of the file on the server</param> 59 /// <param name="remoteFilePath">Source path and filename of the file on the server</param>
Line 59... Line 60...
59 Task<Stream> Download(string remoteFilePath); 60 Task<Stream> Download(string remoteFilePath);
60   61  
61 /// <summary> 62 /// <summary>
62 /// Download a file from the server 63 /// Download a file from the server
63 /// </summary> 64 /// </summary>
64 /// <param name="remoteFilePath">Source path and filename of the file on the server</param> 65 /// <param name="remoteFilePath">Source path and filename of the file on the server</param>
Line 65... Line 66...
65 /// <param name="content"></param> 66 /// <param name="content"></param>
66 /// <param name="name"></param> 67 /// <param name="name"></param>
67 Task<bool> Upload(string remoteFilePath, Stream content, string name); 68 Task<bool> Upload(string remoteFilePath, Stream content, string name);
68   69  
69 /// <summary> 70 /// <summary>
Line 70... Line 71...
70 /// Create a directory on the server 71 /// Create a directory on the server
71 /// </summary> 72 /// </summary>
72 /// <param name="remotePath">Destination path of the directory on the server</param> 73 /// <param name="remotePath">Destination path of the directory on the server</param>
73 /// <param name="name"></param> 74 /// <param name="name"></param>
74 Task<bool> CreateDir(string remotePath, string name); 75 Task<bool> CreateDir(string remotePath, string name);
Line 75... Line 76...
75   76  
76 /// <summary> 77 /// <summary>
77 /// Get folder information from the server. 78 /// Get folder information from the server.
78 /// </summary> 79 /// </summary>
79 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns> 80 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns>
80 Task DeleteFolder(string path = "/"); 81 Task DeleteFolder(string path = "/");
Line 81... Line 82...
81   82  
82 /// <summary> 83 /// <summary>
83 /// Get file information from the server. 84 /// Get file information from the server.
84 /// </summary> 85 /// </summary>
85 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns> 86 /// <returns>A list of files (entries without a trailing slash) and directories (entries with a trailing slash)</returns>
86 Task DeleteFile(string path = "/"); 87 Task DeleteFile(string path = "/");
87   88