public boolean torrentSet(TSetRequestArgs tsr){
        if(tsr != null){
            JsonObject req = new JsonObject();
            //String req = new Gson().toJson(tsr, TSetRequestArgs.class);
            req.addProperty("method", "torrent-set");
            req.add("arguments", new Gson().toJsonTree(tsr, TSetRequestArgs.class));
            
            try{
                TGetResponse r = new Gson().fromJson(postRequest("/transmission/rpc", req.toString()), TGetResponse.class);
                if(r.getResult().equals("success")){
                    return true;
                }else{
                    return false;
                }
            }catch(IOException e){
                return false;
            }
            
        }
        return false;
    }