public bool ValidateUTorrentResponse(string response)
        {
            DelugeBasicResponse basic = js.Deserialize <DelugeBasicResponse>(response);

            if (basic.error == null)
            {
                return(true);
            }
            return(false);
        }
        public string GetResponse(string method, object parameters)
        {
            DelugeBasicRequest DelugeReq = new DelugeBasicRequest();

            DelugeReq.method  = method;
            DelugeReq.@params = parameters;
            DelugeReq.id      = ++i;
            string req      = js.Serialize(DelugeReq);
            string response = RequestData(url, req);
            DelugeBasicResponse delugeresponce = js.Deserialize <DelugeBasicResponse>(response);

            if (delugeresponce.error != null)
            {
                ValidateError(delugeresponce.error);
            }
            string resp = js.Serialize(delugeresponce.result);

            return(resp);
        }