protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data) { var folderId = (string)data.Data[FILE_OR_FOLDER_ID]; var permission = (GoogleDrivePermission)data.Data[PERMISSION]; return(GoogleDriveUtility.SetResourcePermissions(connection, folderId, permission)); }
protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data) { var parentFolderId = (string)data.Data[PARENT_FOLDER_ID]; var newFolderName = (string)data.Data[NEW_FOLDER_NAME]; return(GoogleDriveUtility.CreateFolder(connection, newFolderName, parentFolderId)); }
protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data) { var fileId = (string)data.Data[FILE_ID]; var filePath = (string)data.Data[LOCAL_FILE_PATH]; return(GoogleDriveUtility.DownloadFile(connection, fileId, filePath)); }
protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data) { var folderId = (string)data.Data[PARENT_FOLDER_ID]; var localFilePath = (string)data.Data[LOCAL_FILE_PATH]; var fileName = System.IO.Path.GetFileName(localFilePath); return(GoogleDriveUtility.UploadFile(connection, localFilePath, fileName, folderId)); }
protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data) { var fileOrFolderId = (string)data.Data[FILE_OR_FOLDER_ID]; return(GoogleDriveUtility.DoesResourceExist(connection, fileOrFolderId)); }
protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data) { var FolderId = (string)data.Data[PARENT_FOLDER_ID]; return(GoogleDriveUtility.GetFiles(connection, FolderId)); }
protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data) { var FolderId = (string)data.Data[PARENT_FOLDER_ID]; return(GoogleDriveUtility.GetFolders(connection, FolderId)); //StepsCore.GetFolderList(credentinal, FolderId); }