public static string Add_Uri(String url, String server, String port = "6800", String JOSN_RPC_file_name = "jsonrpc", String access_protocol = "http") { var uris = new JArray { url }; return(Aria2_JSON_RPC_Response_Utils.get_JSON_object_result(Method_Utils_Wrapper.Perform(server, Get_method_full_name(ADD_URI), new JArray { uris }, port, JOSN_RPC_file_name, access_protocol))); }
public static JArray get_stopped_tasks(String server, int num, int offset, String port = "6800", String JOSN_RPC_file_name = "jsonrpc", String access_protocol = "http") { return(Aria2_JSON_RPC_Response_Utils.get_JSON_array_result(Method_Utils_Wrapper.Perform(server, Get_method_full_name(TELL_STOPPED), new JArray { num, offset }, port, JOSN_RPC_file_name, access_protocol))); }
public static JArray get_active_tasks(String server, String port = "6800", String JOSN_RPC_file_name = "jsonrpc", String access_protocol = "http") { return(Aria2_JSON_RPC_Response_Utils.get_JSON_array_result(Method_Utils_Wrapper.Perform(server, Get_method_full_name(TELL_ACTIVE), new JArray { }, port, JOSN_RPC_file_name, access_protocol))); }