private async Task LoadDropBoxFile(string id, DriveInfo driveinfo) { DropBoxFolder drop = new DropBoxFolder(driveinfo); await drop.AddFiles(id); all.Add(drop); }
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); }
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); }