getTopicTypes() public method

public getTopicTypes ( String caller_id ) : String>.Dictionary
caller_id String
return String>.Dictionary
Esempio n. 1
0
        public XmlRpcValue getTopicTypes(String topic, String caller_id)
        {
            XmlRpcValue res = new XmlRpcValue();
            Dictionary <String, String> types = handler.getTopicTypes(topic);

            XmlRpcValue value = new XmlRpcValue();
            int         index = 0;

            foreach (KeyValuePair <String, String> pair in types)
            {
                XmlRpcValue payload = new XmlRpcValue();
                payload.Set(0, pair.Key);
                payload.Set(1, pair.Value);
                value.Set(index++, payload);
            }

            res.Set(0, 1);
            res.Set(1, "getTopicTypes");
            res.Set(2, value);
            return(res);
        }
Esempio n. 2
0
        public void getTopicTypes([In][Out] IntPtr parms, [In][Out] IntPtr result)
        {
            XmlRpcValue res = XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            String topic = parm[0].GetString();

            String caller_id = parm[1].GetString();
            Dictionary <String, String> types = handler.getTopicTypes(topic);

            XmlRpcValue value = new XmlRpcValue();
            int         index = 0;

            foreach (KeyValuePair <String, String> pair in types)
            {
                XmlRpcValue payload = new XmlRpcValue();
                payload.Set(0, pair.Key);
                payload.Set(1, pair.Value);
                value.Set(index, payload);
            }

            res.Set(0, 1);
            res.Set(1, "getTopicTypes");
            res.Set(2, value);
        }