C# Class KidoZen.Files

Afficher le fichier Open project: kidozen/kido-xamarin Class Usage Examples

Méthodes publiques

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

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

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

Delete() public méthode

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

Download() public méthode

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

Upload() public méthode

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.
Résultat Task>