InternalFindFolders method
Future<ServiceResponseCollection<FindFolderResponse> >
InternalFindFolders(
- Iterable<
FolderId> parentFolderIds, - SearchFilter? searchFilter,
- FolderView view,
- ServiceErrorHandling errorHandlingMode,
Implementation
// Folder CopyFolder(
// FolderId folderId,
// FolderId destinationFolderId)
// {
// CopyFolderRequest request = new CopyFolderRequest(this, ServiceErrorHandling.ThrowOnError);
//
// request.DestinationFolderId = destinationFolderId;
// request.FolderIds.Add(folderId);
//
// ServiceResponseCollection<MoveCopyFolderResponse> responses = request.Execute();
//
// return responses[0].Folder;
// }
/// <summary>
/// Move a folder.
/// </summary>
/// <param name="folderId">The folder id.</param>
/// <param name="destinationFolderId">The destination folder id.</param>
/// <returns>Moved folder.</returns>
// Folder MoveFolder(
// FolderId folderId,
// FolderId destinationFolderId)
// {
// MoveFolderRequest request = new MoveFolderRequest(this, ServiceErrorHandling.ThrowOnError);
//
// request.DestinationFolderId = destinationFolderId;
// request.FolderIds.Add(folderId);
//
// ServiceResponseCollection<MoveCopyFolderResponse> responses = request.Execute();
//
// return responses[0].Folder;
// }
/// <summary>
/// Finds folders.
/// </summary>
/// <param name="parentFolderIds">The parent folder ids.</param>
/// <param name="searchFilter">The search filter. Available search filter classes
/// include SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
/// SearchFilter.SearchFilterCollection</param>
/// <param name="view">The view controlling the number of folders returned.</param>
/// <param name="errorHandlingMode">Indicates the type of error handling should be done.</param>
/// <returns>Collection of service responses.</returns>
Future<ServiceResponseCollection<FindFolderResponse>> InternalFindFolders(
Iterable<FolderId> parentFolderIds,
SearchFilter? searchFilter,
FolderView view,
ServiceErrorHandling errorHandlingMode) {
FindFolderRequest request = new FindFolderRequest(this, errorHandlingMode);
request.ParentFolderIds.AddRangeFolderIds(parentFolderIds);
request.SearchFilter = searchFilter;
request.View = view;
return request.Execute();
}