C# Class PicasaWebSync.PicasaAlbumSynchronizer

A class which interacts with Picasa to provide syncing between local folders and online Picasa Web Albums.
显示文件 Open project: bradyholt/picasawebsync Class Usage Examples

Public Methods

Method Description
GetFileInfo ( FileInfo file, bool &isImage, bool &isVideo, ImageFormat &imageFormat, string &contentType ) : void

Returns info about a media file based upon the file extension.

PicasaAlbumSynchronizer ( ) : System
SyncFolder ( string folderPath ) : void

Syncs a local folder to an online Picasa Web Album location

Private Methods

Method Description
AddFileToAlbum ( FileInfo sourceFile, Album targetAlbum, Google.GData.Photos.PicasaFeed targetAlbumPhotoFeed, Google.GData.Photos.PicasaService session ) : void

Syncs a local file to an online Picasa Web Album location

CreateAlbum ( Google.GData.Photos.PicasaService session, Google.GData.Photos.PicasaFeed albumFeed, string targetAlbumName, AlbumAccessEnum albumAccess ) : Album
DeleteFilesFromAlbum ( FileInfo>.Dictionary sourceFiles, Google.GData.Photos.PicasaFeed existingAlbumPhotosFeed ) : void
DetermineAlbumAccess ( DirectoryInfo sourceFolder, AlbumAccessEnum parentFolderAccess ) : AlbumAccessEnum
GetSourceFiles ( DirectoryInfo sourceFolder ) : FileInfo>.Dictionary
GetTargetAlbumName ( DirectoryInfo sourceFolder, string albumNamePrefix ) : string
ResetCounters ( ) : void
ShouldExcludeFolder ( DirectoryInfo sourceFolder, FileInfo>.Dictionary sourceFiles ) : bool
SyncFolder ( DirectoryInfo sourceFolder, string albumNamePrefix, AlbumAccessEnum targetAlbumAccess, bool includeSubFolders, Google.GData.Photos.PicasaService session, Google.GData.Photos.PicasaFeed albumFeed ) : void

Syncs a local folder to an online Picasa Web Album location

UpdateAlbumAccess ( Google.GData.Photos.PicasaService session, Album albumToUpdate, AlbumAccessEnum albumAccess ) : void
WriteOutput ( string message ) : void
WriteOutput ( string message, bool verboseOnly ) : void

Method Details

GetFileInfo() public static method

Returns info about a media file based upon the file extension.
public static GetFileInfo ( FileInfo file, bool &isImage, bool &isVideo, ImageFormat &imageFormat, string &contentType ) : void
file System.IO.FileInfo The media file.
isImage bool Indicates of file is an image.
isVideo bool
imageFormat System.Drawing.Imaging.ImageFormat GDI Image format (Out)
contentType string
return void

PicasaAlbumSynchronizer() public method

public PicasaAlbumSynchronizer ( ) : System
return System

SyncFolder() public method

Syncs a local folder to an online Picasa Web Album location
public SyncFolder ( string folderPath ) : void
folderPath string The source folder to sync.
return void