/// <summary> /// 所有正在下载的任务信息 /// </summary> /// <param name="tasks">返回的任务信息列表</param> /// <param name="keys">查找的属性关键字</param> /// <returns>成功返回正在下载的任务信息列表,失败返回空</returns> public static List <Aria2cTask> TellActive(params string[] keys) { XmlRpcStruct[] xmlstruct = aria2c.TellActive(Aria2cRpcSecret, keys); List <Aria2cTask> tasks = Aria2cTools.ConvertToAria2cTasks(xmlstruct); return(tasks); }
/// <summary> /// 停止的的任务信息 /// </summary> /// <param name="tasks">返回的任务信息列表</param> /// <param name="keys">查找的属性关键字</param> /// <returns>成功返回停止的的任务信息列表,失败返回空</returns> public static List <Aria2cTask> TellStopped(int offset, int num, params string[] keys) { XmlRpcStruct[] xmlstruct = aria2c.TellStopped(Aria2cRpcSecret, offset, num, keys); List <Aria2cTask> tasks = Aria2cTools.ConvertToAria2cTasks(xmlstruct); return(tasks); }
/// <summary> /// 所有正在等待的任务信息 /// </summary> /// <param name="tasks">返回的任务信息列表</param> /// <param name="keys">查找的属性关键字</param> /// <returns>成功返回正在等待的任务信息列表,失败返回空</returns> public static List<Aria2cTask> TellWaiting(int offset, int num, params string[] keys) { XmlRpcStruct[] xmlstruct = aria2c.TellWaiting(offset, num, keys); List<Aria2cTask> tasks = Aria2cTools.ConvertToAria2cTasks(xmlstruct); return tasks; }