C# Class NZBDash.ThirdParty.Api.Rest.NzbGetRestRequest

Inheritance: BaseRequest, INzbGetRequest
Show file Open project: NZBDash/NZBDash

Public Methods

Method Description
GetHistory ( string url, string username, string password ) : NzbGetHistory

Gets the history.

GetLogs ( string url, string username, string password ) : NzbGetLogs

Gets the logs.

GetNzbGetList ( string url, string username, string password ) : NzbGetList

Get the NZBGet List

GetStatus ( string url, string username, string password ) : NzbGetStatus

Gets the status.

NzbGetRestRequest ( IApiRequest request, ILogger logger ) : System.Net
Restart ( string url, string username, string password ) : bool

Restarts the specified URL.

SetDownloadLimit ( string url, string username, string password, int kbLimit ) : bool

Sets the download limit.

SetDownloadStatus ( string url, string username, string password, bool pause ) : bool

Sets the download status.

WriteLog ( string url, string username, string password, NzbLogType kind, string message ) : bool

Writes the log.

Private Methods

Method Description
GenerateRpcBody ( string method ) : string

Generates the JSON RPC body.

Method Details

GetHistory() public method

Gets the history.
public GetHistory ( string url, string username, string password ) : NzbGetHistory
url string The URL.
username string The username.
password string The password.
return NzbGetHistory

GetLogs() public method

Gets the logs.
public GetLogs ( string url, string username, string password ) : NzbGetLogs
url string The URL.
username string The username.
password string The password.
return NZBDash.ThirdParty.Api.Models.Api.NzbGetLogs

GetNzbGetList() public method

Get the NZBGet List
public GetNzbGetList ( string url, string username, string password ) : NzbGetList
url string The URL.
username string The username.
password string The password.
return NZBDash.ThirdParty.Api.Models.Api.NzbGetList

GetStatus() public method

Gets the status.
public GetStatus ( string url, string username, string password ) : NzbGetStatus
url string The URL.
username string The username.
password string The password.
return NZBDash.ThirdParty.Api.Models.Api.NzbGetStatus

NzbGetRestRequest() public method

public NzbGetRestRequest ( IApiRequest request, ILogger logger ) : System.Net
request IApiRequest
logger ILogger
return System.Net

Restart() public method

Restarts the specified URL.
public Restart ( string url, string username, string password ) : bool
url string The URL.
username string The username.
password string The password.
return bool

SetDownloadLimit() public method

Sets the download limit.
public SetDownloadLimit ( string url, string username, string password, int kbLimit ) : bool
url string The URL.
username string The username.
password string The password.
kbLimit int The kb limit.
return bool

SetDownloadStatus() public method

Sets the download status.
public SetDownloadStatus ( string url, string username, string password, bool pause ) : bool
url string The URL.
username string The username.
password string The password.
pause bool if set to true [pause].
return bool

WriteLog() public method

Writes the log.
public WriteLog ( string url, string username, string password, NzbLogType kind, string message ) : bool
url string The URL.
username string The username.
password string The password.
kind NzbLogType The kind.
message string The message.
return bool