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

Inheritance: BaseRequest, INzbGetRequest
Afficher le fichier Open project: NZBDash/NZBDash

Méthodes publiques

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

Méthode Description
GenerateRpcBody ( string method ) : string

Generates the JSON RPC body.

Method Details

GetHistory() public méthode

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

GetLogs() public méthode

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

GetNzbGetList() public méthode

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.
Résultat NZBDash.ThirdParty.Api.Models.Api.NzbGetList

GetStatus() public méthode

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

NzbGetRestRequest() public méthode

public NzbGetRestRequest ( IApiRequest request, ILogger logger ) : System.Net
request IApiRequest
logger ILogger
Résultat System.Net

Restart() public méthode

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

SetDownloadLimit() public méthode

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

SetDownloadStatus() public méthode

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

WriteLog() public méthode

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