Пример #1
0
        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);
        }
Пример #2
0
        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);
        }