C# Класс NZBDash.ThirdParty.Api.Rest.NzbGetRestRequest

Наследование: BaseRequest, INzbGetRequest
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GenerateRpcBody ( string method ) : string

Generates the JSON RPC body.

Описание методов

GetHistory() публичный Метод

Gets the history.
public GetHistory ( string url, string username, string password ) : NzbGetHistory
url string The URL.
username string The username.
password string The password.
Результат NzbGetHistory

GetLogs() публичный Метод

Gets the logs.
public GetLogs ( string url, string username, string password ) : NzbGetLogs
url string The URL.
username string The username.
password string The password.
Результат NZBDash.ThirdParty.Api.Models.Api.NzbGetLogs

GetNzbGetList() публичный Метод

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.
Результат NZBDash.ThirdParty.Api.Models.Api.NzbGetList

GetStatus() публичный Метод

Gets the status.
public GetStatus ( string url, string username, string password ) : NzbGetStatus
url string The URL.
username string The username.
password string The password.
Результат NZBDash.ThirdParty.Api.Models.Api.NzbGetStatus

NzbGetRestRequest() публичный Метод

public NzbGetRestRequest ( IApiRequest request, ILogger logger ) : System.Net
request IApiRequest
logger ILogger
Результат System.Net

Restart() публичный Метод

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.
Результат bool

SetDownloadLimit() публичный Метод

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.
Результат bool

SetDownloadStatus() публичный Метод

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].
Результат bool

WriteLog() публичный Метод

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.
Результат bool