public string RetryDownload(string id, SabnzbdSettings settings) { var request = BuildRequest("retry", settings); request.AddQueryParam("value", id); SabnzbdRetryResponse response; if (!Json.TryDeserialize<SabnzbdRetryResponse>(ProcessRequest(request, settings), out response)) { response = new SabnzbdRetryResponse(); response.Status = true; } return response.Id; }
public string RetryDownload(string id, SabnzbdSettings settings) { var request = new RestRequest(); var action = string.Format("mode=retry&value={0}", id); SabnzbdRetryResponse response; if (!Json.TryDeserialize<SabnzbdRetryResponse>(ProcessRequest(request, action, settings), out response)) { response = new SabnzbdRetryResponse(); response.Status = true; } return response.Id; }