internal async void LoadPath(string p)
        {
            //get the metadata
            var metadata = await App.DropNetClient.GetMetaData(p);

            //now load the viewmodel with it
            MetaData = metadata;
            Contents = metadata.Contents.ToObservableCollection();
            SelectedMeta = null;
        }
        private IEnumerable<ICloudItem> LoadItems(MetaData data)
        {
            var items = new List<DropboxItem>();
            foreach(var item in data.Contents)
            {
                items.Add(new DropboxItem(item.Path,item.Name,item.Icon));
            }

            return items;
        }
Exemple #3
0
 /// <summary>
 /// Gets the thumbnail of an image given its MetaData
 /// </summary>
 /// <param name="file"></param>
 /// <param name="size"></param>
 /// <returns></returns>
 public async Task<byte[]> GetThumbnail(MetaData file, ThumbnailSize size)
 {
     return await GetThumbnail(file.Path, size);
 }
Exemple #4
0
 /// <summary>
 /// Gets the thumbnail of an image given its MetaData (default size = small)
 /// </summary>
 /// <param name="file"></param>
 /// <returns></returns>
 public async Task<byte[]> GetThumbnail(MetaData file)
 {
     return await GetThumbnail(file.Path, ThumbnailSize.Small);
 }