getParamNames() public method

public getParamNames ( String caller_id ) : List
caller_id String
return List
Ejemplo n.º 1
0
        public void getParamNames([In][Out] IntPtr parms, [In][Out] IntPtr result)
        {
            XmlRpcValue res = XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            res.Set(0, 1);
            res.Set(1, "getParamNames");

            String        caller_id = parm[0].GetString();
            List <String> list      = handler.getParamNames(caller_id);

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

            foreach (String s in list)
            {
                response.Set(index++, s);
            }

            res.Set(2, response);


            //throw new Exception("NOT IMPLEMENTED YET!");
            //XmlRpcValue parm = new XmlRpcValue(), result = new XmlRpcValue(), payload = new XmlRpcValue();
            //parm.Set(0, this_node.Name);
            //parm.Set(1, mapped_key);
            //if (!master.execute("deleteParam", parm, ref result, ref payload, false))
            //    return false;
            //return true;
        }
Ejemplo n.º 2
0
        public XmlRpcValue getParamNames(String caller_id)
        {
            XmlRpcValue res = new XmlRpcValue();//XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            res.Set(0, 1);
            res.Set(1, "getParamNames");

            //String caller_id = parm[0].GetString();
            List <String> list = handler.getParamNames(caller_id);

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

            foreach (String s in list)
            {
                response.Set(index++, s);
            }

            res.Set(2, response);
            return(res);
        }