Exemplo n.º 1
0
        private async Task LoadDropBoxFile(string id, DriveInfo driveinfo)
        {
            DropBoxFolder drop = new DropBoxFolder(driveinfo);
            await drop.AddFiles(id);

            all.Add(drop);
        }
Exemplo n.º 2
0
        private async Task LoadDropBoxFile(string id, Daimto.Drive.api.Authentication.DropBoxLogin.TokenResult token)
        {
            DropBoxFolder drop = new DropBoxFolder(token);
            await drop.AddFiles(id);

            folder.Add(drop);
        }
Exemplo n.º 3
0
        public CloudFiles CreateFile(Dictionary <string, object> fileinfo)
        {
            CloudFiles files = null;

            if (driveinfo.token.Drive == "Google")
            {
                GoogleFolder folder = new GoogleFolder(driveinfo);
                files = folder.AddFiles(fileinfo);
            }
            else if (driveinfo.token.Drive == "OneDrive")
            {
                OneDriveFolder folder = new OneDriveFolder(driveinfo);
                files = folder.AddFiles(fileinfo);
            }
            else if (driveinfo.token.Drive == "DropBox")
            {
                DropBoxFolder folder = new DropBoxFolder(driveinfo);
                files = folder.AddFiles(fileinfo);
            }
            return(files);
        }