C# Class SmartFile.Client

Show file Open project: smartfile/client-csharp

Public Methods

Method Description
Client ( string baseUrl ) : System
Download ( RestClient client, string downloadName, string downloadLocation ) : IRestResponse
GetDownloadRequest ( string downloadName ) : RestRequest
GetMoveRequest ( string sourceFile, string destinationFolder ) : RestRequest
GetRemoveRequest ( string FileToBeDeleted ) : RestRequest
GetUploadRequest ( string filename ) : RestRequest
Move ( RestClient client, string sourceFile, string destinationFolder ) : IRestResponse
Remove ( RestClient client, string FileToBeDeleted ) : IRestResponse
Upload ( RestClient client, string filename ) : IRestResponse

Method Details

Client() public method

public Client ( string baseUrl ) : System
baseUrl string
return System

Download() public static method

public static Download ( RestClient client, string downloadName, string downloadLocation ) : IRestResponse
client RestClient
downloadName string
downloadLocation string
return IRestResponse

GetDownloadRequest() public static method

public static GetDownloadRequest ( string downloadName ) : RestRequest
downloadName string
return RestRequest

GetMoveRequest() public static method

public static GetMoveRequest ( string sourceFile, string destinationFolder ) : RestRequest
sourceFile string
destinationFolder string
return RestRequest

GetRemoveRequest() public static method

public static GetRemoveRequest ( string FileToBeDeleted ) : RestRequest
FileToBeDeleted string
return RestRequest

GetUploadRequest() public static method

public static GetUploadRequest ( string filename ) : RestRequest
filename string
return RestRequest

Move() public static method

public static Move ( RestClient client, string sourceFile, string destinationFolder ) : IRestResponse
client RestClient
sourceFile string
destinationFolder string
return IRestResponse

Remove() public static method

public static Remove ( RestClient client, string FileToBeDeleted ) : IRestResponse
client RestClient
FileToBeDeleted string
return IRestResponse

Upload() public static method

public static Upload ( RestClient client, string filename ) : IRestResponse
client RestClient
filename string
return IRestResponse