C# Class KidoZen.Files

Exibir arquivo Open project: kidozen/kido-xamarin Class Usage Examples

Public Methods

Method Description
Browse ( string path = "/" ) : Task>

Browse afolder

Delete ( string path = "/" ) : Task>

Deletes a file

Download ( string path, System.TimeSpan timeout = null ) : Task>

Downloads a file

Upload ( Stream stream, string path, System.TimeSpan timeout = null ) : Task>

Uploads a file

Private Methods

Method Description
Files ( KZApplication app, Uri endpoint ) : KidoZen.authentication
buildBrowseUrl ( string path ) : Uri
buildDeleteUrl ( string path ) : Uri
buildDownloadUrl ( string path ) : Uri
buildUploadUrl ( string path, string &fileName ) : Uri

Method Details

Browse() public method

Browse afolder
public Browse ( string path = "/" ) : Task>
path string Folder's URL. The URL must ends with character '/'
return Task>

Delete() public method

Deletes a file
public Delete ( string path = "/" ) : Task>
path string File's URL.
return Task>

Download() public method

Downloads a file
public Download ( string path, System.TimeSpan timeout = null ) : Task>
path string Source file's URL
timeout System.TimeSpan Optional timeout.
return Task>

Upload() public method

Uploads a file
public Upload ( Stream stream, string path, System.TimeSpan timeout = null ) : Task>
stream Stream File's stream
path string Target full path. It must contains the destination folder and the file name. (ie: /folder/subfolder/subfolder/filename)
timeout System.TimeSpan Optional timeout.
return Task>