/// <summary> /// Do Webupdate /// </summary> /// <param name="force">Activates auto-restart if update is possible</param> public void Update(bool force = false) { int fInt = (force == true) ? 1 : 0; string a = "action/update/force"+fInt+""; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Stop DLs /// </summary> public void Stop() { string a = "action/stop/"; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Toggle DLs /// </summary> public void Toggle() { string a = "action/toggle/"; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Set Reconnect enabled or not /// </summary> /// <param name="Value"></param> public void SetReconnectEnabled(bool Value) { string a = "action/set/reconnectenabled/" + Value.ToString(); Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Shutdown JD /// </summary> public void Shutdown() { string a = "action/shutdown/"; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Set max sim. Downloads /// </summary> /// <param name="Downloads"></param> public void SetMaximumSimulatanousDownloads(int Downloads) { string a = "action/set/download/max/" + Downloads.ToString(); Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Set Use Premium enabled or not /// </summary> /// <param name="Value"></param> public void SetPremiumEnabled(bool Value) { string a = "action/set/premiumenabled/" + Value.ToString(); Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Save DLC-Container with all links to path /// </summary> /// <param name="ToPath"></param> public void SaveContainer(String ToPath) { string a = "action/save/container/" + ToPath; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Set Downloadspeedlimit /// </summary> /// <param name="kbps"></param> public void SetDownloadSpeedLimit(int kbps) { string a = "action/set/download/limit/" + kbps.ToString(); Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Restart JD /// </summary> public void Restart() { string a = "action/restart/"; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Pause DLs /// </summary> public void Pause() { string a = "action/pause/"; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Add links to grabber /// </summary> /// <param name="Links"></param> /// <param name="Grabber">Hide/Show LinkGrabber</param> /// <param name="Start">Start downloads afterwards</param> public void AddLinks(List<String> Links, bool Grabber = false, bool Start = true) { int iGrabber = (Grabber == true) ? 1 : 0; int iStart = (Start == true) ? 1 : 0; string links = String.Empty; foreach(string link in Links) { links += link + " "; } string a = "action/add/links/grabber" + iGrabber + "/start" + iStart + "/"+ links; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
/// <summary> /// Add links to grabber /// </summary> /// <param name="Links"></param> /// <param name="Grabber">Hide/Show LinkGrabber</param> /// <param name="Start">Start downloads afterwards</param> public void AddContainer(List<String> ContainerPaths, bool Grabber = false, bool Start = true) { int iGrabber = (Grabber == true) ? 1 : 0; int iStart = (Start == true) ? 1 : 0; string containers = String.Empty; foreach (string path in ContainerPaths) { containers += path + " "; } string a = "action/add/container/grabber" + iGrabber + "/start" + iStart + "/" + containers; Remote r = new Remote(this._host + a, "GET"); r.Response(); }
public void Update() { int fInt = 1; string a = "action/update/force"+fInt+""; Remote r = new Remote(this._host + a, "GET"); r.Response(); }