This repository was archived by the owner on Feb 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.cs
More file actions
45 lines (28 loc) · 1.7 KB
/
Client.cs
File metadata and controls
45 lines (28 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using VeryStreamSDK.JSON;
namespace VeryStreamSDK
{
public interface IClient
{
Task<JSON_UserInfo> UserInfo();
Task<JSON_ListFolder> ListFolder(string DestinationFolder = null);
Task<JSON_CreateNewFolder> CreateNewFolder(string DestinationFolder, string FolderName);
Task Upload(object FileToUpload, VClient.UploadTypes UploadType, string DestinationFolder, string FileName, IProgress<ReportStatus> ReportCls = null, CancellationToken token = default(CancellationToken));
Task<JSON_RemoteUpload> RemoteUpload(string FileUrl, string DestinationFolder);
Task<bool> RenameFolder(string DestinationFolder, string NewName);
Task<bool> DeleteFolder(string DestinationFolderID);
Task<bool> RenameFile(string DestinationFile, string NewName);
Task<bool> MoveFile(string SourceFile, string DestinationFolder);
Task<bool> DeleteFile(string DestinationFile);
Task<JSON_GetSplash> GetSplash(string DestinationFile);
Task<JSON_CopyFile> CopyFile(string SourceFile, string DestinationFolder);
Task<JSON_GenerateDownloadUrl> GenerateDownloadUrl(string DestinationFileID);
Task Download(string DestinationFileID, string FileSaveDir, IProgress<ReportStatus> ReportCls = null, int TimeOut = 60, CancellationToken token = default(CancellationToken));
Task<JSON_FileInfo> FileInfo(string DestinationFileID);
Task<JSON_RunningConvertsQueue> RunningConvertsQueue(string DestinationFolder = null);
Task<Stream> DownloadFileAsStream(string DestinationFileID, IProgress<ReportStatus> ReportCls = null, int TimeOut = 60, CancellationToken token = default(CancellationToken));
}
}