C# Класс PicasaWebSync.PicasaAlbumSynchronizer

A class which interacts with Picasa to provide syncing between local folders and online Picasa Web Albums.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetFileInfo() публичный статический Метод

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
Результат void

PicasaAlbumSynchronizer() публичный Метод

public PicasaAlbumSynchronizer ( ) : System
Результат System

SyncFolder() публичный Метод

Syncs a local folder to an online Picasa Web Album location
public SyncFolder ( string folderPath ) : void
folderPath string The source folder to sync.
Результат void