C# Class ZinOS.Services.Implementation.DesktopFileSystem.DropboxFileSystemProvider

Inheritance: IDesktopFileSystemProvider
Mostra file Open project: hiddenbyte/ZinOS

Public Methods

Method Description
CreateDirectory ( int desktopId, string dirPath ) : bool
CreateFile ( int desktopId, string targetFileNamePath, Stream fileData ) : string
CreateFile ( int desktopId, string targetPath, string fileName, Stream fileStream ) : string
DeleteFile ( int desktopId, string filePath ) : bool
DropboxFileSystemProvider ( IDropboxService dropbox, IZinOSDesktopDropboxAccount zinOSDesktopDropboxAccount ) : System
GetChildrenItems ( int desktopId, FileSystemItem parent ) : IEnumerable
GetFile ( int desktopId, FileSystemItem fileSystemItem ) : Stream
GetRoot ( int desktopId ) : FileSystemItem
PrepareFileSystem ( int desktopId ) : bool
UpdateFile ( int desktopId, string filePath, byte fileBytes ) : bool

Private Methods

Method Description
FormatToDropboxPath ( string path ) : string
FormatToDropboxPath ( FileSystemItem item ) : void
FormatToZinOSPath ( IEnumerable items ) : void
GetDesktopDropboxToken ( int desktopId, string &accessToken, string &tokenSecret ) : bool

Method Details

CreateDirectory() public method

public CreateDirectory ( int desktopId, string dirPath ) : bool
desktopId int
dirPath string
return bool

CreateFile() public method

public CreateFile ( int desktopId, string targetFileNamePath, Stream fileData ) : string
desktopId int
targetFileNamePath string
fileData Stream
return string

CreateFile() public method

public CreateFile ( int desktopId, string targetPath, string fileName, Stream fileStream ) : string
desktopId int
targetPath string
fileName string
fileStream Stream
return string

DeleteFile() public method

public DeleteFile ( int desktopId, string filePath ) : bool
desktopId int
filePath string
return bool

DropboxFileSystemProvider() public method

public DropboxFileSystemProvider ( IDropboxService dropbox, IZinOSDesktopDropboxAccount zinOSDesktopDropboxAccount ) : System
dropbox IDropboxService
zinOSDesktopDropboxAccount IZinOSDesktopDropboxAccount
return System

GetChildrenItems() public method

public GetChildrenItems ( int desktopId, FileSystemItem parent ) : IEnumerable
desktopId int
parent ZinOS.Services.Definitions.DesktopFileSystem.FileSystemItem
return IEnumerable

GetFile() public method

public GetFile ( int desktopId, FileSystemItem fileSystemItem ) : Stream
desktopId int
fileSystemItem ZinOS.Services.Definitions.DesktopFileSystem.FileSystemItem
return Stream

GetRoot() public method

public GetRoot ( int desktopId ) : FileSystemItem
desktopId int
return ZinOS.Services.Definitions.DesktopFileSystem.FileSystemItem

PrepareFileSystem() public method

public PrepareFileSystem ( int desktopId ) : bool
desktopId int
return bool

UpdateFile() public method

public UpdateFile ( int desktopId, string filePath, byte fileBytes ) : bool
desktopId int
filePath string
fileBytes byte
return bool