Example #1
0
        public async Task <bool> UpdateMetaData(CloudNode node)
        {
            try
            {
                var path   = $"nodes/{node.Id}";
                var url    = CreateMetaUrl(path);
                var result = await Patch(node, url);

                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
Example #2
0
 public async Task <CloudNode> Restore(CloudNode node)
 {
     return(await Restore(node.Id));
 }
Example #3
0
 public async Task <bool> AddToTrash(CloudNode node)
 {
     return(await AddToTrash(node.Id));
 }
Example #4
0
 public async Task <string> GetTemporaryUrl(CloudNode node)
 {
     return(await GetTemporaryUrl(node.Id));
 }
Example #5
0
        public async Task <HttpResponseMessage> GetDownload(CloudNode node)
        {
            var url = GetDownloadUrl(node);

            return(await Client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead));
        }
Example #6
0
 public string GetDownloadUrl(CloudNode node)
 {
     return(GetDownloadUrl(node.Id));
 }
		public async Task<CloudNode> Restore(CloudNode node)
		{
			return await Restore (node.Id);
		}
		public async Task<bool> AddToTrash(CloudNode node)
		{
			return await AddToTrash (node.Id);
		}
		public async Task<string> GetTemporaryUrl(CloudNode node)
		{
			return await GetTemporaryUrl (node.Id);
		}
		public string GetDownloadUrl(CloudNode node)
		{
			return GetDownloadUrl (node.Id);
		}
		public async Task<HttpResponseMessage> GetDownload(CloudNode node)
		{
			var url = GetDownloadUrl (node);
			return await Client.GetAsync (url,HttpCompletionOption.ResponseHeadersRead);
		}