protected override void ProcessRecord() { FlickrOperations autentication = FlickrOperationsFactory.GetFlickrOperations(WriteVerbose); CommonOperations commonOperations = new CommonOperations(WriteVerbose); var albums = commonOperations.CreateAlbum(this.Name); WriteObject(albums); }
public void ClearFlickr() { var temporaryAlbum = DateTime.Now.ToLongTimeString(); commonOperations.CreateAlbum(temporaryAlbum); MoveSinglePhotosToAlbum(temporaryAlbum); var albums = this.manager.GetAlbums(); foreach (var album in albums) { var checkAlbum = commonOperations.GetAlbumById(album.AlbumId.Id); if (checkAlbum != null) {//if we remove all pictures in previous iteration, album won't exist anymore DeleteAlbumExceptionSafe(album, true); } } }