public getPublishedTopics ( String caller_id, String subgraph ) : List
|
||
caller_id | String | Not used?Wtf? |
subgraph | String | Optional String, only returns topics that start with that name |
Результат | List
|
/// <summary> /// Returns list of all publications /// </summary> /// <param name="parms"></param> /// <param name="result"></param> public void getPublications([In][Out] IntPtr parms, [In][Out] IntPtr result) { XmlRpcValue res = XmlRpcValue.Create(ref result); res.Set(0, 1); //length res.Set(1, "publications"); //response too XmlRpcValue response = new XmlRpcValue(); //guts, new value here //response.Size = 0; List <List <String> > current = handler.getPublishedTopics("", ""); for (int i = 0; i < current.Count; i += 2) { XmlRpcValue pub = new XmlRpcValue(); pub.Set(0, current[0]); current.RemoveAt(0); pub.Set(1, current[0]); current.RemoveAt(0); response.Set(i, pub); } res.Set(2, response); }
/// <summary> /// Returns list of all publications /// </summary> /// <param name="parms"></param> /// <param name="result"></param> public XmlRpcValue getPublications() { XmlRpcValue res = new XmlRpcValue(); res.Set(0, 1); //length res.Set(1, "publications"); //response too XmlRpcValue response = new XmlRpcValue(); //guts, new value here //response.Size = 0; List <List <String> > current = handler.getPublishedTopics("", ""); for (int i = 0; i < current.Count; i += 2) { XmlRpcValue pub = new XmlRpcValue(); pub.Set(0, current[0]); current.RemoveAt(0); pub.Set(1, current[0]); current.RemoveAt(0); response.Set(i, pub); } res.Set(2, response); return(res); }