C# Class PicasaWebSync.PicasaAlbumSynchronizer

A class which interacts with Picasa to provide syncing between local folders and online Picasa Web Albums.
Afficher le fichier Open project: bradyholt/picasawebsync Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

PicasaAlbumSynchronizer() public méthode

public PicasaAlbumSynchronizer ( ) : System
Résultat System

SyncFolder() public méthode

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