// ----- Public methods public void Handle(RemoveDuplicationInAlbumCommand command) { var album = _flickrService.GetAlbum(command.AlbumId); _flickrService.RemoveTemporaryPhoto(album); RemoveDuplicatedPhotos(album, command.PromptUserConfirmation); _console.WriteLine("* Remove duplication ended"); }
// ----- Internal logics private Album LoadAlbum(string albumId) { return(_console.StartOperation( $"* Loading album '{albumId}' ... ", () => _flickrService.GetAlbum(albumId))); }